配置打包

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

@ -19,6 +19,18 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </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> <dependencies>
<!--导入mysql驱动--> <!--导入mysql驱动-->
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->

@ -25,6 +25,18 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </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> <dependencies>
<dependency> <dependency>

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