Commit 612f0cbc by 谢明辉

Merge branch 'develop' of http://192.168.9.26/platform/finance_serv into develop

2 parents cd5ee434 ddca9528
Showing 91 changed files with 1325 additions and 131 deletions
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.vion</groupId>
<artifactId>financial</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>FinancialSystem</name>
<description>Financial System project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId>
<optional>true</optional> </dependency> -->
<!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId>
</dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.18</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1102-jdbc41</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-base</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-web</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-annotation</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性-->
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.vion</groupId>
<artifactId>finance_serv</artifactId>
<version>SNAPSHOT</version>
<packaging>war</packaging>
<name>FinancialSystem</name>
<description>Financial System project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId>
<optional>true</optional> </dependency> -->
<!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId>
</dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.18</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1102-jdbc41</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-base</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-web</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-annotation</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性 -->
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
package com.vion.financial;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@MapperScan(basePackages = "com.vion.financial.mapper")
@ComponentScan(basePackages = "com.vion.financial.*")
public class FinancialSystemApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(FinancialSystemApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(FinancialSystemApplication.class);
}
}
package com.vion.financial;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@MapperScan(basePackages="com.vion.financial.mapper")
@ComponentScan(basePackages="com.vion.financial")
public class FinancialSystemApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(FinancialSystemApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(FinancialSystemApplication.class);
}
}
package com.vion.financial.controller;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.vion.financial.entity.ProjectAcceptanc;
import com.vion.financial.service.ProjectAcceptancService;
import com.vion.financial.vo.ProjectAcceptancVo;
@RestController
public class ProjectAcceptancController extends BaseController{
@Resource
ProjectAcceptancService projectAcceptancService;
@GetMapping("/{contract_unid}/acceptancs")
@ResponseBody
public Object queryAcceptancInfo(@PathVariable String contract_unid) {
return projectAcceptancService.queryProjectAcceptanc(contract_unid);
}
@PostMapping("/{contract_unid}/acceptancs")
@ResponseBody
public Object addAcceptancInfo(@RequestBody ProjectAcceptancVo projectAcceptancVo,@PathVariable String contract_unid) {
return projectAcceptancService.addProjectAcceptanc(projectAcceptancVo,contract_unid);
}
@PutMapping("/{contract_unid}/acceptancs")
@ResponseBody
public Object updateAcceptancInfo(@RequestBody ProjectAcceptancVo projectAcceptancVo,@PathVariable String contract_unid) {
return projectAcceptancService.updateProjectAcceptanc(projectAcceptancVo, contract_unid);
}
@DeleteMapping("/{contract_unid}/acceptancs")
@ResponseBody
public Object deleteAcceptancInfo(@RequestBody ProjectAcceptancVo projectAcceptancVo,@PathVariable String contract_unid) {
return projectAcceptancService.deleteProjectAcceptanc(projectAcceptancVo, contract_unid);
}
}
package com.vion.financial.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.vion.financial.mapper.ProjectMapper;
import com.vion.financial.service.ProjectService;
import com.vion.financial.vo.ProjectVo;
@RestController
public class ProjectController extends BaseController{
@Autowired
ProjectService projectService;
@PostMapping(value="/projects")
@ResponseBody
public Object addProject(@RequestBody ProjectVo projectVo) {
return projectService.addProject(projectVo);
}
@GetMapping(value="/projects")
@ResponseBody
public Object queryProject() {
return projectService.queryProject();
}
@PutMapping(value="/projects")
@ResponseBody
public Object updateProject(@RequestBody ProjectVo projectVo) {
return projectService.updateProject(projectVo);
}
@DeleteMapping(value="/projects")
@ResponseBody
public Object deleteProject(@RequestBody ProjectVo projectVo) {
return projectService.deleteProject(projectVo);
}
}
......@@ -5,11 +5,11 @@
insert into tb_project (project_name) values (#{project_name})
</insert>
<update id="updateProject" parameterType="com.vion.financial.entity.Project">
update tb_project set contract_unid = #{contract_unid},project_name = #{project_name}
update tb_project set project_name = #{project_name}
where project_unid = #{project_unid}
</update>
<select id="queryProject" resultType="com.vion.financial.entity.Project">
select * from tb_project where contract_unid = #{contract_unid}
select * from tb_project
</select>
<delete id="deleteProject" parameterType="int">
delete from tb_project where project_unid = #{project_unid}
......
package com.vion.financial.service;
import com.vion.financial.vo.DeliverGoodsVo;
import com.vion.financial.vo.ProjectAcceptancVo;
public interface ProjectAcceptancService {
public Object addProjectAcceptanc(ProjectAcceptancVo projectAcceptancVo,String s);
public Object queryProjectAcceptanc(String s);
public Object updateProjectAcceptanc(ProjectAcceptancVo projectAcceptancVo,String s);
public Object deleteProjectAcceptanc(ProjectAcceptancVo projectAcceptancVo,String s);
}
package com.vion.financial.service;
import com.vion.financial.vo.ProjectVo;
public interface ProjectService {
public Object addProject(ProjectVo projectVo);
public Object queryProject();
public Object updateProject(ProjectVo projectVo);
public Object deleteProject(ProjectVo projectVo);
}
package com.vion.financial.service.imp;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vion.financial.service.AppendixService;
import com.vion.financial.service.ContractService;
import com.vion.financial.service.ProjectAcceptancService;
import com.vion.financial.vo.DeliverGoodsVo;
import com.vion.financial.vo.FailCode;
import com.vion.financial.vo.ProjectAcceptancVo;
import com.vion.financial.vo.SuccessCode;
import com.vion.financial.entity.Appendix;
import com.vion.financial.entity.DeliverGoods;
import com.vion.financial.entity.ProjectAcceptanc;
import com.vion.financial.mapper.ProjectAcceptancMapper;
@Service
public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
Logger logger=LoggerFactory.getLogger(ProjectAcceptancServiceImpl.class);
@Autowired
FailCode failCode;
@Autowired
SuccessCode successCode;
@Autowired
ProjectAcceptancMapper projectAcceptancMapper;
@Autowired
ContractService contractService;
@Autowired
AppendixService appendixService;
@Override
public Object addProjectAcceptanc(ProjectAcceptancVo projectAcceptancVo, String s) {
try {
Appendix appendix = new Appendix();
logger.info("=====================增加合同验收信息=====================");
if((boolean)contractService.isDelete(s)) {
List<ProjectAcceptanc> list=projectAcceptancVo.getList_check_data();
for(ProjectAcceptanc projectAcceptanc:list) {
projectAcceptanc.setContract_unid(s);
projectAcceptancMapper.addProjectAcceptanc(projectAcceptanc);
for(int appendixUnid:projectAcceptanc.getAppendix_unids()) {
appendix.setAppendix_unid(appendixUnid);
appendix.setBusiness_table("tb_project_acceptanc");
appendix.setBusiness_unid(String.valueOf(projectAcceptanc.getAcceptanc_unid()));
appendixService.updateAppendix(appendix);
}
}
return successCode;
}else {
failCode.setEnode("100");
failCode.setEnode("合同已删除");
return failCode;
}
} catch (Exception e) {
// TODO: handle exception
logger.error("增加合同验收信息异常"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnode("增加异常");
return failCode;
}
}
@Override
public Object queryProjectAcceptanc(String s) {
// TODO Auto-generated method stub
try {
ProjectAcceptancVo projectAcceptancVo = new ProjectAcceptancVo();
projectAcceptancVo.setList_check_data(new ArrayList());
Appendix appendix = null;
logger.info("========================查询合同验收信息========================");
if(contractService.isDelete(s)) {
List<ProjectAcceptanc> list=projectAcceptancMapper.queryProjectAcceptanc(s);
for(ProjectAcceptanc projectAcceptanc:list) {
appendix = new Appendix();
appendix.setBusiness_table("tb_project_acceptanc");
appendix.setBusiness_unid(String.valueOf(projectAcceptanc.getAcceptanc_unid()));
Object o = appendixService.queryAppendixList(appendix);
projectAcceptanc.setAppendix_list(o == null ? null : (List)o);
projectAcceptancVo.getList_check_data().add(projectAcceptanc);
}
}
else {
failCode.setEnode("100");
failCode.setEnode("合同已删除");
return failCode;
}
return projectAcceptancVo;
} catch (Exception e) {
// TODO: handle exception
logger.error("查询合同验收信息异常"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnode("查询异常");
return failCode;
}
}
@Override
public Object updateProjectAcceptanc(ProjectAcceptancVo projectAcceptancVo, String s) {
// TODO Auto-generated method stub
try {
logger.info("===========================修改合同验收信息===========================");
if(contractService.isDelete(s)) {
List<ProjectAcceptanc> list=projectAcceptancVo.getList_check_data();
for(ProjectAcceptanc projectAcceptanc:list) {
projectAcceptanc.setContract_unid(s);
projectAcceptancMapper.updateProjectAcceptanc(projectAcceptanc);
}
return successCode;
}else {
failCode.setEnode("100");
failCode.setEnode("合同已删除");
return failCode;
}
} catch (Exception e) {
logger.error("更新合同验收信息异常"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnode("更新异常");
return failCode;
// TODO: handle exception
}
}
@Override
public Object deleteProjectAcceptanc(ProjectAcceptancVo projectAcceptancVo, String s) {
// TODO Auto-generated method stub
try {
logger.info("===========================删除合同验收信息===========================");
Appendix appendix =null;
if(contractService.isDelete(s)) {
List<Integer> list=projectAcceptancVo.getAcceptanc_unids();
for(int n:list) {
projectAcceptancMapper.deleteProjectAcceptanc(n);
appendix=new Appendix();
appendix.setBusiness_unid(String.valueOf(n));
appendixService.deleteAppendix(appendix);
}
return successCode;
}else {
failCode.setEnode("100");
failCode.setEnode("合同已删除");
return failCode;
}
} catch (Exception e) {
// TODO: handle exception
logger.error("删除合同验收信息异常"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnode("删除异常");
return failCode;
}
}
}
package com.vion.financial.service.imp;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vion.financial.entity.Project;
import com.vion.financial.mapper.ProjectMapper;
import com.vion.financial.service.ProjectService;
import com.vion.financial.vo.FailCode;
import com.vion.financial.vo.ProjectVo;
import com.vion.financial.vo.SuccessCode;
@Service
public class ProjectServiceImpl implements ProjectService {
Logger logger=LoggerFactory.getLogger(ProjectServiceImpl.class);
@Autowired
SuccessCode successCode;
@Autowired
FailCode failCode;
@Autowired
ProjectMapper projectMapper;
@Override
public Object addProject(ProjectVo projectVo) {
// TODO Auto-generated method stub
logger.info("=======================增加项目信息========================");
try {
List<Project> list=projectVo.getProject_list();
for(Project project:list) {
projectMapper.addProject(project);
}
return successCode;
} catch (Exception e) {
// TODO: handle exception
logger.error("增加合同信息出错"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnote("Fail");
return failCode;
}
}
@Override
public Object queryProject() {
// TODO Auto-generated method stub
logger.info("=====================查询项目信息========================");
try {
return projectMapper.queryProject();
} catch (Exception e) {
// TODO: handle exception
logger.error("查询合同信息出错"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnote("Fail");
return failCode;
}
}
@Override
public Object updateProject(ProjectVo projectVo) {
// TODO Auto-generated method stub
logger.info("==================更新项目信息======================");
try {
for(Project project:projectVo.getProject_list()) {
projectMapper.updateProject(project);
}
return successCode;
} catch (Exception e) {
// TODO: handle exception
logger.error("更新合同信息出错"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnote("Fail");
return failCode;
}
}
@Override
public Object deleteProject(ProjectVo projectVo) {
// TODO Auto-generated method stub
logger.info("====================删除项目信息=====================");
try {
for(int n:projectVo.getProject_unids()) {
projectMapper.deleteProject(n);
}
return successCode;
} catch (Exception e) {
// TODO: handle exception
logger.error("删除合同信息出错"+e.getLocalizedMessage(),e);
failCode.setEnode("500");
failCode.setEnote("Fail");
return failCode;
}
}
}
package com.vion.financial.vo;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.vion.financial.entity.ProjectAcceptanc;
@JsonInclude(value=Include.NON_NULL)
public class ProjectAcceptancVo {
List<ProjectAcceptanc> list_check_data;
List<Integer> acceptanc_unids;
public List<ProjectAcceptanc> getList_check_data() {
return list_check_data;
}
public void setList_check_data(List<ProjectAcceptanc> list_check_data) {
this.list_check_data = list_check_data;
}
public List<Integer> getAcceptanc_unids() {
return acceptanc_unids;
}
public void setAcceptanc_unids(List<Integer> acceptanc_unids) {
this.acceptanc_unids = acceptanc_unids;
}
}
package com.vion.financial.vo;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.vion.financial.entity.Project;
@JsonInclude(value=Include.NON_NULL)
public class ProjectVo {
List<Project> project_list;
List<Integer> project_unids;
public List<Project> getProject_list() {
return project_list;
}
public void setProject_list(List<Project> project_list) {
this.project_list = project_list;
}
public List<Integer> getProject_unids() {
return project_unids;
}
public void setProject_unids(List<Integer> project_unids) {
this.project_unids = project_unids;
}
}
server:
port: 8080
spring:
thymeleaf:
prefix: classpath:/templates/thymeleaf/
suffix: .html
mode: HTML5
encoding: UTF-8
cache: false
datasource:
url: jdbc:postgresql://192.168.9.162:5432/financial_serv
username: postgres
password: authpass
driver-class-name: org.postgresql.Driver
###################以下为druid增加的配置###########################
type: com.alibaba.druid.pool.DruidDataSource
# 下面为连接池的补充设置,应用到上面所有数据源中
# 初始化大小,最小,最大
initialSize: 5
minIdle: 5
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# hikari:
# maximum-pool-size:
http:
multipart:
max-file-size: 20Mb
max-request-size: 40Mb
mybatis:
mapper-locations: com/vion/financial/mapping/*.xml
logging:
level:
root: INFO
pattern:
level: INFO
console: "[financial_serv]-[%d{yyyy-MM-dd HH:mm:ss.SSS}]-%m%n"
path: F:\LOG\
#pagehelper:
# helperDialect: postgresql
# reasonable: true
# supportMethodsArguments: true
# params: count=countSql
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.AppendixMapper">
<select id="queryAppendixList" resultType="com.vion.financial.entity.Appendix" parameterType="com.vion.financial.entity.Appendix">
select * from tb_appendix where
<if test="business_table !=null and business_table !=''">
business_table = #{business_table}
</if>
<if test="business_unid !=null and business_unid !=''">
and business_unid = #{business_unid}
</if>
<!-- and
<if test="appendix_name !=null and appendix_name !=''">
appendix_name = #{appendix_name}
</if>
and
<if test="appendix_type !=null and appendix_type !=''">
appendix_type = #{appendix_type}
</if>
and
<if test="appendix_url !=null and appendix_url !=''">
appendix_url = #{appendix_url}
</if> -->
</select>
<insert id="addAppendix" parameterType="com.vion.financial.entity.Appendix" keyColumn="appendix_unid" keyProperty="appendix_unid" useGeneratedKeys="true" >
insert into tb_appendix (
business_table
<if test="business_unid !=null and business_unid !=''">
,business_unid
</if>
<if test="appendix_name !=null and appendix_name !=''">
,appendix_name
</if>
<if test="appendix_type !=null and appendix_type !=''">
,appendix_type
</if>
<if test="appendix_url !=null and appendix_url !=''">
,appendix_url
</if>
) values (
#{business_table}
<if test="business_unid !=null and business_unid !=''">
,#{business_unid}
</if>
<if test="appendix_name !=null and appendix_name !=''">
,#{appendix_name}
</if>
<if test="appendix_type !=null and appendix_type !=''">
,#{appendix_type}
</if>
<if test="appendix_url !=null and appendix_url !=''">
,#{appendix_url}
</if>
)
</insert>
<update id="updateAppendix" parameterType="com.vion.financial.entity.Appendix">
update tb_appendix set
<if test="appendix_unid != null and appendix_unid != ''">
appendix_unid=#{appendix_unid}
</if>
<if test="business_table != null and business_table != ''">
,business_table=#{business_table}
</if>
<if test="business_unid !=null and business_unid != ''">
, business_unid=#{business_unid}
</if>
<if test="appendix_name != null and appendix_name != ''">
,appendix_name=#{appendix_name}
</if>
<if test="appendix_type != null and appendix_type != ''">
,appendix_type=#{appendix_type}
</if>
<if test="appendix_url != null and appendix_url != ''">
,appendix_url=#{appendix_url}
</if>
where appendix_unid = #{appendix_unid}
</update>
<delete id="deleteAppendix" parameterType="com.vion.financial.entity.Appendix">
delete from tb_appendix where business_table = #{business_table} or business_unid = #{business_unid}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.ContractMapper">
<insert id="addOne" parameterType="com.vion.financial.vo.ContractVo">
INSERT INTO tb_contract(
contract_unid
<if test="salesperson_unid != null and salesperson_unid != ''">
,salesperson_unid
</if>
<if test="province != null and province != ''">
,province
</if>
<if test="city !=null and city != ''">
,city
</if>
<if test="county != null and county != ''">
,county
</if>
<if test="guarantee_period != null and guarantee_period != ''">
,guarantee_period
</if>
<if test="sign_date != null and sign_date != ''">
,sign_date
</if>
<if test="product_line_type != null and product_line_type != ''">
,product_line_type
</if>
<if test="contract_state != null and contract_state != ''">
,contract_state
</if>
<if test="contract_type != null and contract_type != ''">
,contract_type
</if>
<if test="contract_amount != null and contract_amount != ''">
,contract_amount
</if>
<if test="deduct_amount != null and deduct_amount != ''">
,deduct_amount
</if>
<if test="contract_amount_note != null and contract_amount_note != ''">
,contract_type
</if>
<if test="stop_amount != null and stop_amount != ''">
,stop_amount
</if>
<if test="reback_note != null and reback_note != ''">
,reback_note
</if>
<if test="exemptions_amount != null and exemptions_amount != ''">
,exemptions_amount
</if>
<if test="contract_remain_note != null and contract_remain_note != ''">
,contract_remain_note
</if>
<if test="is_archive != null and is_archive != ''">
,is_archive
</if>
<if test="bad_amount != null and bad_amount != ''">
,bad_amount
</if>
<if test="bad_amount_note != null and bad_amount_note != ''">
,bad_amount_note
</if>
<if test="confirm_income_amount != null and confirm_income_amount != ''">
,confirm_income_amount
</if>
<if test="amount_state_unid != null and amount_state_unid != ''">
,amount_state_unid
</if>
<if test="start_guarantee_date != null and start_guarantee_date != ''">
,start_guarantee_date
</if>
<if test="end_guarantee_date != null and end_guarantee_date != ''">
,end_guarantee_date
</if>
<if test="mainten_start_point != null and mainten_start_point != ''">
,mainten_start_point
</if>
<if test="contract_note != null and contract_note != ''">
,contract_note
</if>
<if test="is_delete != null and is_delete != ''">
,is_delete
</if>
<if test="project_unid != null and project_unid != ''">
,project_unid
</if>
<if test="customer_unid != null and customer_unid != ''">
,customer_unid
</if>
) VALUES(
#{contract_unid}
<if test="salesperson_unid != null and salesperson_unid != ''">
,#{salesperson_unid}
</if>
<if test="province != null and province != ''">
,#{province}
</if>
<if test="city !=null and city != ''">
, #{city}
</if>
<if test="county != null and county != ''">
,#{county}
</if>
<if test="guarantee_period != null and guarantee_period != ''">
,#{guarantee_period}
</if>
<if test="sign_date != null and sign_date != ''">
,{sign_date}
</if>
<if test="product_line_type != null and product_line_type != ''">
,#{product_line_type}
</if>
<if test="contract_state != null and contract_state != ''">
,#{contract_state}
</if>
<if test="contract_type != null and contract_type != ''">
,#{contract_type}
</if>
<if test="contract_amount != null and contract_amount != ''">
,#{contract_amount}
</if>
<if test="deduct_amount != null and deduct_amount != ''">
,#{deduct_amount}
</if>
<if test="contract_amount_note != null and contract_amount_note != ''">
,#{contract_type}
</if>
<if test="stop_amount != null and stop_amount != ''">
,#{stop_amount}
</if>
<if test="reback_note != null and reback_note != ''">
,#{reback_note}
</if>
<if test="exemptions_amount != null and exemptions_amount != ''">
,#{exemptions_amount}
</if>
<if test="contract_remain_note != null and contract_remain_note != ''">
,#{contract_remain_note}
</if>
<if test="is_archive != null and is_archive != ''">
,#{is_archive}
</if>
<if test="bad_amount != null and bad_amount != ''">
,#{bad_amount}
</if>
<if test="bad_amount_note != null and bad_amount_note != ''">
,#{bad_amount_note}
</if>
<if test="confirm_income_amount != null and confirm_income_amount != ''">
,#{confirm_income_amount}
</if>
<if test="amount_state_unid != null and amount_state_unid != ''">
,#{amount_state_unid}
</if>
<if test="start_guarantee_date != null and start_guarantee_date != ''">
,#{start_guarantee_date}
</if>
<if test="end_guarantee_date != null and end_guarantee_date != ''">
,#{end_guarantee_date}
</if>
<if test="mainten_start_point != null and mainten_start_point != ''">
,#{mainten_start_point}
</if>
<if test="contract_note != null and contract_note != ''">
,#{contract_note}
</if>
<if test="is_delete != null and is_delete != ''">
,#{is_delete}
</if>
<if test="project_unid != null and project_unid != ''">
,#{project_unid}
</if>
<if test="customer_unid != null and customer_unid != ''">
,#{customer_unid}
</if>
)
</insert>
<select id="queryOne" resultType="com.vion.financial.vo.ContractVo" parameterType="java.lang.String">
select * from tb_contract where contract_unid = #{contract_unid}
</select>
<update id="updateOne" parameterType="com.vion.financial.vo.ContractVo">
update tb_contract set
<if test="salesperson_unid != null and salesperson_unid != ''">
salesperson_unid=#{salesperson_unid}
</if>
<if test="province != null and province != ''">
,province=#{province}
</if>
<if test="city !=null and city != ''">
, city=#{city}
</if>
<if test="county != null and county != ''">
,county=#{county}
</if>
<if test="guarantee_period != null and guarantee_period != ''">
,guarantee_period=#{guarantee_period}
</if>
<if test="sign_date != null and sign_date != ''">
,sign_date=#{sign_date}
</if>
<if test="product_line_type != null and product_line_type != ''">
,product_line_type=#{product_line_type}
</if>
<if test="contract_state != null and contract_state != ''">
,contract_state=#{contract_state}
</if>
<if test="contract_type != null and contract_type != ''">
,contract_type=#{contract_type}
</if>
<if test="contract_amount != null and contract_amount != ''">
,contract_amount=#{contract_amount}
</if>
<if test="deduct_amount != null and deduct_amount != ''">
,deduct_amount=#{deduct_amount}
</if>
<if test="contract_amount_note != null and contract_amount_note != ''">
,contract_type=#{contract_type}
</if>
<if test="stop_amount != null and stop_amount != ''">
,stop_amount=#{stop_amount}
</if>
<if test="reback_note != null and reback_note != ''">
,reback_note=#{reback_note}
</if>
<if test="exemptions_amount != null and exemptions_amount != ''">
,exemptions_amount=#{exemptions_amount}
</if>
<if test="contract_remain_note != null and contract_remain_note != ''">
,contract_remain_note=#{contract_remain_note}
</if>
<if test="is_archive != null and is_archive != ''">
,is_archive=#{is_archive}
</if>
<if test="bad_amount != null and bad_amount != ''">
,bad_amount=#{bad_amount}
</if>
<if test="bad_amount_note != null and bad_amount_note != ''">
,bad_amount_note=#{bad_amount_note}
</if>
<if test="confirm_income_amount != null and confirm_income_amount != ''">
,confirm_income_amount=#{confirm_income_amount}
</if>
<if test="amount_state_unid != null and amount_state_unid != ''">
,amount_state_unid=#{amount_state_unid}
</if>
<if test="start_guarantee_date != null and start_guarantee_date != ''">
,start_guarantee_date=#{start_guarantee_date}
</if>
<if test="end_guarantee_date != null and end_guarantee_date != ''">
,end_guarantee_date=#{end_guarantee_date}
</if>
<if test="mainten_start_point != null and mainten_start_point != ''">
,mainten_start_point=#{mainten_start_point}
</if>
<if test="contract_note != null and contract_note != ''">
,contract_note=#{contract_note}
</if>
<if test="is_delete != null and is_delete != ''">
,is_delete=#{is_delete}
</if>
<if test="project_unid != null and project_unid != ''">
,project_unid=#{project_unid}
</if>
<if test="customer_unid != null and customer_unid != ''">
,customer_unid=#{customer_unid}
</if>
where contract_unid=#{contract_unid}
</update>
<delete id="deleteOne" parameterType="java.lang.String">
update tb_contract set is_delete = false where contract_unid = #{contract_unid}
<!-- delete from tb_contract where contract_unid = #{contract_unid} -->
</delete>
<select id="selectByCondition" parameterType="com.vion.financial.vo.SelectVo" resultType="com.vion.financial.vo.ContractsListVo">
</select>
<select id="isDelete" parameterType="String" resultType="boolean">
select is_delete from tb_contract where contract_unid = #{contract_unid}
</select>
<select id="queryList" resultType="String">
select contract_unid from tb_contract
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.CustomerMapper">
<insert id="addCustomer" parameterType="com.vion.financial.entity.Customer">
insert into tb_customer (customer_name) values (#{customer_name})
</insert>
<update id="updateCustomer" parameterType="com.vion.financial.entity.Customer">
update tb_customer set contract_unid = #{contract_unid},customer_name = #{customer_name}
where customer_unid = #{customer_unid}
</update>
<select id="queryCustomer" parameterType="String">
select *from tb_customer where contract_unid = #{contract_unid}
</select>
<delete id="deleteCustomer" parameterType="int">
delete from tb_customer where customer_unid = #{customer_unid}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.DeliverGoodsMapper">
<insert id="addDeliverGoods" parameterType="com.vion.financial.entity.DeliverGoods">
insert into tb_deliver_goods (contract_unid,deliver_goods_date,goods_acceptanc_date)
values(#{contract_unid},#{deliver_goods_date},#{goods_acceptanc_date})
</insert>
<update id="updateDeliverGoods" parameterType="com.vion.financial.entity.DeliverGoods">
update tb_deliver_goods set
<if test="deliver_goods_date !=null">
deliver_goods_date = #{deliver_goods_date},
goods_acceptanc_date = #{goods_acceptanc_date}
</if>
where deliver_unid = #{deliver_unid}
</update>
<select id="queryDeliverGoods" parameterType="String" resultType="com.vion.financial.entity.DeliverGoods">
select *from tb_deliver_goods where contract_unid = #{contract_unid}
</select>
<delete id="deleteDeliverGoods" parameterType="int">
delete from tb_deliver_goods where deliver_unid = #{deliver_unid}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.PaymentAgreeMapper">
<insert id="addPaymentAgree" parameterType="com.vion.financial.entity.PaymentAgree">
insert into tb_payment_agree (
contract_unid,
<if test="payment_type !=null and payment_type !=''">
payment_type,
</if>
<if test="payment_progress !=null and payment_progress !=''">
payment_progress,
</if>
<if test="days !=null and days !=''">
days,
</if>
<if test="payment_propority !=null and payment_propority !=''">
payment_propority,
</if>
<if test="payment_requirement !=null and payment_requirement !=''">
payment_requirement
</if>
)
values(
#{contract_unid},
<if test="payment_type !=null and payment_type !=''">
#{payment_type},
</if>
<if test="payment_progress !=null and payment_progress !=''">
#{payment_progress},
</if>
<if test="days !=null and days !=''">
#{days},
</if>
<if test="payment_propority !=null and payment_propority !=''">
#{payment_propority},
</if>
<if test="payment_requirement !=null and payment_requirement !=''">
#{payment_requirement}
</if>
)
</insert>
<update id="updatePaymentAgree" parameterType="com.vion.financial.entity.PaymentAgree">
update tb_payment_agree set
contract_unid=#{contract_unid},
<if test="payment_type != null and payment_type !=''">
payment_type = #{payment_type} ,
</if>
<if test="payment_progress !=null and payment_progress !=''">
payment_progress = #{payment_progress} ,
</if>
<if test="days !=null and days !=''">
days = #{days} ,
</if>
<if test="payment_propority !=null and payment_propority !=''">
payment_propority = #{payment_propority} ,
</if>
<if test="payment_requirement !=null and payment_requirement !=''">
payment_requirement = #{payment_requirement}
</if>
where payment_unid = #{payment_unid}
</update>
<select id="queryPaymentAgree" parameterType="String" resultType="com.vion.financial.entity.PaymentAgree">
select * from tb_payment_agree where contract_unid = #{contract_unid}
</select>
<delete id="deletePaymentAgree" parameterType="int">
delete from tb_payment_agree where payment_unid = #{payment_unid}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.ProjectAcceptancMapper">
<insert id="addProjectAcceptanc" parameterType="com.vion.financial.entity.ProjectAcceptanc" keyColumn="acceptanc_unid" useGeneratedKeys="true" keyProperty="acceptanc_unid">
insert into tb_project_acceptanc (contract_unid,acceptanc_type,acceptanc_date,acceptanc_note)
values(#{contract_unid},#{acceptanc_type},#{acceptanc_date},#{acceptanc_note})
</insert>
<update id="updateProjectAcceptanc" parameterType="com.vion.financial.entity.ProjectAcceptanc">
update tb_project_acceptanc set contract_unid = #{contract_unid},acceptanc_type = #{acceptanc_type},acceptanc_date = #{acceptanc_date},acceptanc_note = #{acceptanc_note}
where acceptanc_unid = #{acceptanc_unid}
</update>
<select id="queryProjectAcceptanc" parameterType="String" resultType="com.vion.financial.entity.ProjectAcceptanc">
select *from tb_project_acceptanc where contract_unid = #{contract_unid}
</select>
<delete id="deleteProjectAcceptanc" parameterType="int">
delete from tb_project_acceptanc where acceptanc_unid = #{acceptanc_unid}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.ProjectMapper">
<insert id="addProject" parameterType="com.vion.financial.entity.Project">
insert into tb_project (project_name) values (#{project_name})
</insert>
<update id="updateProject" parameterType="com.vion.financial.entity.Project">
update tb_project set project_name = #{project_name}
where project_unid = #{project_unid}
</update>
<select id="queryProject" resultType="com.vion.financial.entity.Project">
select * from tb_project
</select>
<delete id="deleteProject" parameterType="int">
delete from tb_project where project_unid = #{project_unid}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.ReceiptMapper">
<insert id="addReceipt" parameterType="com.vion.financial.entity.Receipt">
insert into tb_receipt (contract_unid,receipt_progress,receipt_amount,oa_flow_id,
<if test="receipt_note !=null and receipt_note !=''">
receipt_note,
</if>
create_date)
values( #{contract_unid},#{receipt_progress},#{receipt_amount},#{oa_flow_id},
<if test="receipt_note !=null and receipt_note !=''">
#{receipt_note},
</if>
now())
</insert>
<update id="updateReceipt" parameterType="com.vion.financial.entity.Receipt">
update tb_receipt set
<if test="receipt_progress !=null">
receipt_progress = #{receipt_progress},
</if>
<if test="receipt_amount !=null">
receipt_amount = #{receipt_amount},
</if>
<if test="oa_flow_id !=null and oa_flow_id !=''">
oa_flow_id = #{oa_flow_id},
</if>
<if test="receipt_note !=null and receipt_note !=''">
receipt_note = #{receipt_note}
</if>
<!-- <if test="create_date !=null ">
create_date = now()
</if> -->
where receipt_unid = #{receipt_unid}
</update>
<select id="queryReceipt" parameterType="String" resultType="com.vion.financial.entity.Receipt">
select *from tb_receipt where contract_unid = #{contract_unid}
</select>
<delete id="deleteReceipt" parameterType="int">
delete from tb_receipt where receipt_unid = #{receipt_unid}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.ReturnInfoMapper">
<insert id="addReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo">
insert into tb_return_info (
contract_unid,
<if test="reback_progress !=null and reback_progress !=''">
reback_progress,
</if>
<if test="reback_date !=null">
reback_date,
</if>
<if test="actual_reback_amount !=null and actual_reback_amount !=''">
actual_reback_amount,
</if>
<if test="reback_note !=null and reback_note !=''">
reback_note
</if>
)
values (
#{contract_unid},
<if test="reback_progress !=null and reback_progress !=''">
#{reback_progress},
</if>
<if test="reback_date !=null">
#{reback_date,jdbcType=DATE},
</if>
<if test="actual_reback_amount !=null and actual_reback_amount !=''">
#{actual_reback_amount},
</if>
<if test="reback_note !=null and reback_note !=''">
#{reback_note}
</if>
)
</insert>
<update id="updateReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo">
update tb_return_info set (
<if test="reback_progress !=null and reback_progress !=''">
reback_progress = #{reback_progress},
</if>
<if test="reback_date !=null and reback_date !=''">
reback_date = #{reback_date},
</if>
<if test="actual_reback_amount !=null and actual_reback_amount !=''">
actual_reback_amount = #{actual_reback_amount},
</if>
<if test="reback_note !=null and reback_note !=''">
reback_note = #{reback_note}
</if>
)
where reback_unid = #{reback_unid}
</update>
<select id="queryReturnInfo" parameterType="String" resultType="com.vion.financial.entity.ReturnInfo">
select *from tb_return_info where contract_unid = #{contract_unid}
</select>
<delete id="deleteReturnInfo" parameterType="int">
delete from tb_return_info where reback_unid = #{reback_unid}
</delete>
</mapper>
\ No newline at end of file
#Generated by Maven Integration for Eclipse
#Tue Jul 31 10:30:36 CST 2018
version=SNAPSHOT
groupId=com.vion
m2e.projectName=finance_serv
m2e.projectLocation=F\:\\\u9879\u76EE\\\u8D22\u52A1\u8FDB\u5EA6\\finance_serv\\code\\finance_serv
artifactId=finance_serv
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.vion</groupId>
<artifactId>finance_serv</artifactId>
<version>SNAPSHOT</version>
<packaging>war</packaging>
<name>FinancialSystem</name>
<description>Financial System project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<!-- <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId>
<optional>true</optional> </dependency> -->
<!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId>
</dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.18</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1102-jdbc41</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-base</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-web</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>cn.afterturn</groupId>
<artifactId>easypoi-annotation</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性 -->
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!