parent
cc132764b5
commit
9cee44c307
6 changed files with 126 additions and 102 deletions
@ -1,13 +1,13 @@ |
||||
package com.daqing.financial.crauth; |
||||
|
||||
import org.junit.Test; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
||||
@SpringBootTest |
||||
class DqFinancialCrmsAuthApplicationTests { |
||||
|
||||
@Test |
||||
void contextLoads() { |
||||
} |
||||
|
||||
} |
||||
//package com.daqing.financial.crauth;
|
||||
//
|
||||
//import org.junit.Test;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//
|
||||
//@SpringBootTest
|
||||
//class DqFinancialCrmsAuthApplicationTests {
|
||||
//
|
||||
// @Test
|
||||
// void contextLoads() {
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
@ -1,36 +1,36 @@ |
||||
package com.daqing.financial.crms; |
||||
|
||||
import com.daqing.financial.crms.service.impl.CustomerServiceImpl; |
||||
import com.daqing.framework.domain.crms.CustomerEntity; |
||||
import com.daqing.framework.domain.crms.ext.CustomerTO; |
||||
import com.daqing.framework.domain.crms.request.CustomerRequest; |
||||
import com.daqing.framework.utils.PageUtils; |
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
import java.util.List; |
||||
|
||||
@SpringBootTest |
||||
@RunWith(SpringRunner.class) |
||||
public class DqFinancialCrmsApplicationTests { |
||||
|
||||
@Autowired |
||||
private CustomerServiceImpl customerServiceimpl; |
||||
|
||||
CustomerRequest customerRequest = new CustomerRequest(); |
||||
|
||||
@Test |
||||
public void queryListTest(){ |
||||
customerRequest.setCodeOrName("20200909"); |
||||
/* customerRequest.setStartTime("2020-09-07"); |
||||
customerRequest.setEndTime("2020-09-10");*/ |
||||
customerRequest.setCustomerType(1); |
||||
customerRequest.setCreateTime(12); |
||||
PageUtils list = customerServiceimpl.queryList(1, 10, customerRequest); |
||||
List<CustomerTO> list1 = (List<CustomerTO>) list.getList(); |
||||
list1.forEach(customerEntity -> System.out.println(customerEntity)); |
||||
} |
||||
} |
||||
//package com.daqing.financial.crms;
|
||||
//
|
||||
//import com.daqing.financial.crms.service.impl.CustomerServiceImpl;
|
||||
//import com.daqing.framework.domain.crms.CustomerEntity;
|
||||
//import com.daqing.framework.domain.crms.ext.CustomerTO;
|
||||
//import com.daqing.framework.domain.crms.request.CustomerRequest;
|
||||
//import com.daqing.framework.utils.PageUtils;
|
||||
//import org.junit.Test;
|
||||
//import org.junit.runner.RunWith;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//import org.springframework.test.context.junit4.SpringRunner;
|
||||
//
|
||||
//import java.util.List;
|
||||
//
|
||||
//@SpringBootTest
|
||||
//@RunWith(SpringRunner.class)
|
||||
//public class DqFinancialCrmsApplicationTests {
|
||||
//
|
||||
// @Autowired
|
||||
// private CustomerServiceImpl customerServiceimpl;
|
||||
//
|
||||
// CustomerRequest customerRequest = new CustomerRequest();
|
||||
//
|
||||
// @Test
|
||||
// public void queryListTest(){
|
||||
// customerRequest.setCodeOrName("20200909");
|
||||
// /* customerRequest.setStartTime("2020-09-07");
|
||||
// customerRequest.setEndTime("2020-09-10");*/
|
||||
// customerRequest.setCustomerType(1);
|
||||
// customerRequest.setCreateTime(12);
|
||||
// PageUtils list = customerServiceimpl.queryList(1, 10, customerRequest);
|
||||
// List<CustomerTO> list1 = (List<CustomerTO>) list.getList();
|
||||
// list1.forEach(customerEntity -> System.out.println(customerEntity));
|
||||
// }
|
||||
//}
|
||||
|
@ -1,38 +1,38 @@ |
||||
package com.daqing.financial.hrms; |
||||
|
||||
import com.daqing.financial.hrms.service.impl.EmployeeServiceImpl; |
||||
import com.daqing.framework.domain.crms.CustomerEntity; |
||||
import com.daqing.framework.domain.hrms.EmployeeEntity; |
||||
import com.daqing.framework.domain.hrms.ext.EmployeeTO; |
||||
import com.daqing.framework.utils.PageUtils; |
||||
import org.junit.Test; |
||||
import org.junit.runner.RunWith; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.test.context.junit4.SpringRunner; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
@SpringBootTest |
||||
@RunWith(SpringRunner.class) |
||||
public class DqFinancialHrmsApplicationTests { |
||||
|
||||
@Autowired |
||||
private EmployeeServiceImpl employeeServiceimpl; |
||||
|
||||
List<Long> ids = new ArrayList<>(); |
||||
|
||||
@Test |
||||
public void contextLoads() { |
||||
ids.add(1L); |
||||
ids.add(2L); |
||||
ids.add(3L); |
||||
ids.add(4L); |
||||
List<EmployeeTO> list = employeeServiceimpl.getEmployeeAndDeptById(ids); |
||||
for (EmployeeTO employeeTO : list) { |
||||
System.out.println(employeeTO); |
||||
} |
||||
} |
||||
|
||||
} |
||||
//package com.daqing.financial.hrms;
|
||||
//
|
||||
//import com.daqing.financial.hrms.service.impl.EmployeeServiceImpl;
|
||||
//import com.daqing.framework.domain.crms.CustomerEntity;
|
||||
//import com.daqing.framework.domain.hrms.EmployeeEntity;
|
||||
//import com.daqing.framework.domain.hrms.ext.EmployeeTO;
|
||||
//import com.daqing.framework.utils.PageUtils;
|
||||
//import org.junit.Test;
|
||||
//import org.junit.runner.RunWith;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//import org.springframework.test.context.junit4.SpringRunner;
|
||||
//
|
||||
//import java.util.ArrayList;
|
||||
//import java.util.List;
|
||||
//
|
||||
//@SpringBootTest
|
||||
//@RunWith(SpringRunner.class)
|
||||
//public class DqFinancialHrmsApplicationTests {
|
||||
//
|
||||
// @Autowired
|
||||
// private EmployeeServiceImpl employeeServiceimpl;
|
||||
//
|
||||
// List<Long> ids = new ArrayList<>();
|
||||
//
|
||||
// @Test
|
||||
// public void contextLoads() {
|
||||
// ids.add(1L);
|
||||
// ids.add(2L);
|
||||
// ids.add(3L);
|
||||
// ids.add(4L);
|
||||
// List<EmployeeTO> list = employeeServiceimpl.getEmployeeAndDeptById(ids);
|
||||
// for (EmployeeTO employeeTO : list) {
|
||||
// System.out.println(employeeTO);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
@ -1,15 +1,15 @@ |
||||
package com.daqing.financial.gateway; |
||||
|
||||
import org.junit.Test; |
||||
import org.springframework.boot.test.context.SpringBootTest; |
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; |
||||
|
||||
@EnableDiscoveryClient |
||||
@SpringBootTest |
||||
class DqGovernGatewayApplicationTests { |
||||
|
||||
@Test |
||||
void contextLoads() { |
||||
} |
||||
|
||||
} |
||||
//package com.daqing.financial.gateway;
|
||||
//
|
||||
//import org.junit.Test;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
//
|
||||
//@EnableDiscoveryClient
|
||||
//@SpringBootTest
|
||||
//class DqGovernGatewayApplicationTests {
|
||||
//
|
||||
// @Test
|
||||
// void contextLoads() {
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
Loading…
Reference in new issue