配置打包

master
邱飞云 4 years ago
parent cc132764b5
commit 9cee44c307
  1. 26
      dq-financial-crms-auth/src/test/java/com/daqing/financial/crauth/DqFinancialCrmsAuthApplicationTests.java
  2. 72
      dq-financial-crms/src/test/java/com/daqing/financial/crms/DqFinancialCrmsApplicationTests.java
  3. 76
      dq-financial-hrms/src/test/java/com/daqing/financial/hrms/DqFinancialHrmsApplicationTests.java
  4. 12
      dq-framework-common/pom.xml
  5. 12
      dq-framework-utils/pom.xml
  6. 30
      dq-govern-gateway/src/test/java/com/daqing/financial/gateway/DqGovernGatewayApplicationTests.java

@ -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);
// }
// }
//
//}

@ -19,6 +19,18 @@
</plugin>
</plugins>
</build>
<!--<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
</build>-->
<dependencies>
<!--导入mysql驱动-->
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->

@ -25,6 +25,18 @@
</plugin>
</plugins>
</build>
<!--<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>7</source>
<target>7</target>
</configuration>
</plugin>
</plugins>
</build>-->
<dependencies>
<dependency>

@ -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…
Cancel
Save