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