Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 594941aa
authored
Jul 30, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
加入合同验收信息部分
1 parent
c8847d85
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1371 additions
and
1276 deletions
code/FinancialSystem/src/main/java/com/vion/financial/controller/ContractController.java
code/FinancialSystem/src/main/java/com/vion/financial/controller/DeliverGoodsController.java
code/FinancialSystem/src/main/java/com/vion/financial/entity/Appendix.java
code/FinancialSystem/src/main/java/com/vion/financial/entity/DeliverGoods.java
code/FinancialSystem/src/main/java/com/vion/financial/entity/ProjectAcceptanc.java
code/FinancialSystem/src/main/java/com/vion/financial/mapper/ContractMapper.java
code/FinancialSystem/src/main/java/com/vion/financial/mapper/ProjectAcceptancMapper.java
code/FinancialSystem/src/main/java/com/vion/financial/mapper/ProjectMapper.java
code/FinancialSystem/src/main/java/com/vion/financial/mapping/AppendixMapper.xml
code/FinancialSystem/src/main/java/com/vion/financial/mapping/ContractMapper.xml
code/FinancialSystem/src/main/java/com/vion/financial/mapping/ProjectAcceptancMapper.xml
code/FinancialSystem/src/main/java/com/vion/financial/mapping/ProjectMapper.xml
code/FinancialSystem/src/main/java/com/vion/financial/service/ContractService.java
code/FinancialSystem/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/FinancialSystem/src/main/java/com/vion/financial/service/imp/DeliverGoodsServiceImpl.java
code/FinancialSystem/src/main/java/com/vion/financial/vo/ContractVo.java
code/FinancialSystem/src/main/java/com/vion/financial/vo/DeliverGoodsVo.java
code/FinancialSystem/src/main/resources/application.yml
code/FinancialSystem/src/main/java/com/vion/financial/controller/ContractController.java
View file @
594941a
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.service.ContractService
;
import
com.vion.financial.vo.ContractVo
;
@RestController
public
class
ContractController
extends
BaseController
{
@Resource
ContractService
contractService
;
@PostMapping
@ResponseBody
public
Object
addContract
(
@RequestBody
ContractVo
vontractVo
)
{
return
contractService
.
addOne
(
vontractVo
);
}
@GetMapping
(
value
=
"/{contract_unid}"
)
@ResponseBody
public
Object
queryOne
(
@PathVariable
String
contract_unid
)
{
return
contractService
.
queryOne
(
contract_unid
);
}
@PutMapping
(
value
=
"/{contract_unid}"
)
@ResponseBody
public
Object
updateOne
(
@PathVariable
String
contract_unid
,
@RequestBody
ContractVo
vontractVo
)
{
vontractVo
.
setContract_unid
(
contract_unid
);
return
contractService
.
updateOne
(
vontractVo
);
}
@DeleteMapping
(
value
=
"/{contract_unid}"
)
@ResponseBody
public
Object
deleteOne
(
@PathVariable
String
contract_unid
)
{
return
contractService
.
deleteOne
(
contract_unid
);
}
}
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.service.ContractService
;
import
com.vion.financial.vo.ContractVo
;
@RestController
public
class
ContractController
extends
BaseController
{
@Resource
ContractService
contractService
;
@PostMapping
@ResponseBody
public
Object
addContract
(
@RequestBody
ContractVo
vontractVo
)
{
return
contractService
.
addOne
(
vontractVo
);
}
@GetMapping
(
value
=
"/{contract_unid}"
)
@ResponseBody
public
Object
queryOne
(
@PathVariable
String
contract_unid
)
{
return
contractService
.
queryOne
(
contract_unid
);
}
@PutMapping
(
value
=
"/{contract_unid}"
)
@ResponseBody
public
Object
updateOne
(
@PathVariable
String
contract_unid
,
@RequestBody
ContractVo
vontractVo
)
{
vontractVo
.
setContract_unid
(
contract_unid
);
return
contractService
.
updateOne
(
vontractVo
);
}
@DeleteMapping
(
value
=
"/{contract_unid}"
)
@ResponseBody
public
Object
deleteOne
(
@PathVariable
String
contract_unid
)
{
return
contractService
.
deleteOne
(
contract_unid
);
}
@GetMapping
(
value
=
"codes"
)
@ResponseBody
public
Object
queryList
()
{
return
contractService
.
queryList
();
}
}
code/FinancialSystem/src/main/java/com/vion/financial/controller/DeliverGoodsController.java
View file @
594941a
package
com
.
vion
.
financial
.
controller
;
import
javax.annotation.Resource
;
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.service.DeliverGoodsService
;
import
com.vion.financial.service.ReturnInfoService
;
import
com.vion.financial.vo.DeliverGoodsVo
;
@RestController
public
class
DeliverGoodsController
extends
BaseController
{
@Resource
DeliverGoodsService
deliverGoodsService
;
@GetMapping
(
"/{contract_unid}/delivers"
)
@ResponseBody
public
Object
queryDeliverInfo
(
@PathVariable
String
contract_unid
)
{
return
deliverGoodsService
.
queryDeliverGoods
(
contract_unid
);
}
@PostMapping
(
"/{contract_unid}/delivers"
)
@ResponseBody
public
Object
addDeliverInfo
(
@RequestBody
DeliverGoodsVo
deliverGoodsVo
,
@PathVariable
String
contract_unid
)
{
return
deliverGoodsService
.
addDeliverGoods
(
deliverGoodsVo
,
contract_unid
);
}
@PutMapping
(
"/{contract_unid}/delivers"
)
@ResponseBody
public
Object
updateDeliverInf
(
@RequestBody
DeliverGoodsVo
deliverGoodsVo
,
@PathVariable
String
contract_unid
)
{
return
deliverGoodsService
.
updateDeliverGoods
(
deliverGoodsVo
,
contract_unid
);
}
}
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.service.DeliverGoodsService
;
import
com.vion.financial.service.ReturnInfoService
;
import
com.vion.financial.vo.DeliverGoodsVo
;
@RestController
public
class
DeliverGoodsController
extends
BaseController
{
@Resource
DeliverGoodsService
deliverGoodsService
;
@GetMapping
(
"/{contract_unid}/delivers"
)
@ResponseBody
public
Object
queryDeliverInfo
(
@PathVariable
String
contract_unid
)
{
return
deliverGoodsService
.
queryDeliverGoods
(
contract_unid
);
}
@PostMapping
(
"/{contract_unid}/delivers"
)
@ResponseBody
public
Object
addDeliverInfo
(
@RequestBody
DeliverGoodsVo
deliverGoodsVo
,
@PathVariable
String
contract_unid
)
{
return
deliverGoodsService
.
addDeliverGoods
(
deliverGoodsVo
,
contract_unid
);
}
@PutMapping
(
"/{contract_unid}/delivers"
)
@ResponseBody
public
Object
updateDeliverInf
(
@RequestBody
DeliverGoodsVo
deliverGoodsVo
,
@PathVariable
String
contract_unid
)
{
return
deliverGoodsService
.
updateDeliverGoods
(
deliverGoodsVo
,
contract_unid
);
}
@DeleteMapping
(
"/{contract_unid}/delivers"
)
@ResponseBody
public
Object
deleteDeliverInfo
(
@RequestBody
DeliverGoodsVo
deliverGoodsVo
,
@PathVariable
String
contract_unid
)
{
return
deliverGoodsService
.
deleteDeliverGoods
(
deliverGoodsVo
,
contract_unid
);
}
}
code/FinancialSystem/src/main/java/com/vion/financial/entity/Appendix.java
View file @
594941a
package
com
.
vion
.
financial
.
entity
;
public
class
Appendix
{
private
int
appendix_unid
;
private
String
business_table
;
private
String
business_unid
;
private
String
appendix_name
;
private
String
appendix_type
;
private
String
appendix_url
;
public
int
getAppendix_unid
()
{
return
appendix_unid
;
}
public
void
setAppendix_unid
(
int
appendix_unid
)
{
this
.
appendix_unid
=
appendix_unid
;
}
public
String
getBusiness_table
()
{
return
business_table
;
}
public
void
setBusiness_table
(
String
business_table
)
{
this
.
business_table
=
business_table
;
}
public
String
getBusiness_unid
()
{
return
business_unid
;
}
public
void
setBusiness_unid
(
String
business_unid
)
{
this
.
business_unid
=
business_unid
;
}
public
String
getAppendix_name
()
{
return
appendix_name
;
}
public
void
setAppendix_name
(
String
appendix_name
)
{
this
.
appendix_name
=
appendix_name
;
}
public
String
getAppendix_type
()
{
return
appendix_type
;
}
public
void
setAppendix_type
(
String
appendix_type
)
{
this
.
appendix_type
=
appendix_type
;
}
public
String
getAppendix_url
()
{
return
appendix_url
;
}
public
void
setAppendix_url
(
String
appendix_url
)
{
this
.
appendix_url
=
appendix_url
;
}
}
package
com
.
vion
.
financial
.
entity
;
public
class
Appendix
{
private
Integer
appendix_unid
;
private
String
business_table
;
private
String
business_unid
;
private
String
appendix_name
;
private
String
appendix_type
;
private
String
appendix_url
;
public
Integer
getAppendix_unid
()
{
return
appendix_unid
;
}
public
void
setAppendix_unid
(
Integer
appendix_unid
)
{
this
.
appendix_unid
=
appendix_unid
;
}
public
String
getBusiness_table
()
{
return
business_table
;
}
public
void
setBusiness_table
(
String
business_table
)
{
this
.
business_table
=
business_table
;
}
public
String
getBusiness_unid
()
{
return
business_unid
;
}
public
void
setBusiness_unid
(
String
business_unid
)
{
this
.
business_unid
=
business_unid
;
}
public
String
getAppendix_name
()
{
return
appendix_name
;
}
public
void
setAppendix_name
(
String
appendix_name
)
{
this
.
appendix_name
=
appendix_name
;
}
public
String
getAppendix_type
()
{
return
appendix_type
;
}
public
void
setAppendix_type
(
String
appendix_type
)
{
this
.
appendix_type
=
appendix_type
;
}
public
String
getAppendix_url
()
{
return
appendix_url
;
}
public
void
setAppendix_url
(
String
appendix_url
)
{
this
.
appendix_url
=
appendix_url
;
}
}
code/FinancialSystem/src/main/java/com/vion/financial/entity/DeliverGoods.java
View file @
594941a
package
com
.
vion
.
financial
.
entity
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
@JsonInclude
(
value
=
Include
.
NON_NULL
)
public
class
DeliverGoods
{
private
int
deliver_unid
;
private
String
contract_unid
;
private
Date
deliver_goods_date
;
private
Date
goods_acceptanc_date
;
private
List
<
Appendix
>
appendix_list
;
public
int
getDeliver_unid
()
{
return
deliver_unid
;
}
public
void
setDeliver_unid
(
int
deliver_unid
)
{
this
.
deliver_unid
=
deliver_unid
;
}
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
Date
getDeliver_goods_date
()
{
return
deliver_goods_date
;
}
public
void
setDeliver_goods_date
(
Date
deliver_goods_date
)
{
this
.
deliver_goods_date
=
deliver_goods_date
;
}
public
Date
getGoods_acceptanc_date
()
{
return
goods_acceptanc_date
;
}
public
void
setGoods_acceptanc_date
(
Date
goods_acceptanc_date
)
{
this
.
goods_acceptanc_date
=
goods_acceptanc_date
;
}
public
List
<
Appendix
>
getAppendix_list
()
{
return
appendix_list
;
}
public
void
setAppendix_list
(
List
<
Appendix
>
appendix_list
)
{
this
.
appendix_list
=
appendix_list
;
}
}
package
com
.
vion
.
financial
.
entity
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
@JsonInclude
(
value
=
Include
.
NON_NULL
)
public
class
DeliverGoods
{
private
int
deliver_unid
;
private
String
contract_unid
;
private
Date
deliver_goods_date
;
private
Date
goods_acceptanc_date
;
private
List
<
Appendix
>
list_deliver_data
;
List
<
Integer
>
appendix_unids
;
public
int
getDeliver_unid
()
{
return
deliver_unid
;
}
public
void
setDeliver_unid
(
int
deliver_unid
)
{
this
.
deliver_unid
=
deliver_unid
;
}
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
Date
getDeliver_goods_date
()
{
return
deliver_goods_date
;
}
public
void
setDeliver_goods_date
(
Date
deliver_goods_date
)
{
this
.
deliver_goods_date
=
deliver_goods_date
;
}
public
Date
getGoods_acceptanc_date
()
{
return
goods_acceptanc_date
;
}
public
void
setGoods_acceptanc_date
(
Date
goods_acceptanc_date
)
{
this
.
goods_acceptanc_date
=
goods_acceptanc_date
;
}
public
List
<
Appendix
>
getList_deliver_data
()
{
return
list_deliver_data
;
}
public
void
setList_deliver_data
(
List
<
Appendix
>
list_deliver_data
)
{
this
.
list_deliver_data
=
list_deliver_data
;
}
public
List
<
Integer
>
getAppendix_unids
()
{
return
appendix_unids
;
}
public
void
setAppendix_unids
(
List
<
Integer
>
appendix_unids
)
{
this
.
appendix_unids
=
appendix_unids
;
}
}
code/FinancialSystem/src/main/java/com/vion/financial/entity/ProjectAcceptanc.java
View file @
594941a
package
com
.
vion
.
financial
.
entity
;
import
java.util.Date
;
public
class
ProjectAcceptanc
{
private
int
acceptanc_unid
;
private
String
contract_unid
;
private
String
acceptanc_type
;
private
Date
acceptanc_date
;
private
String
acceptanc_note
;
public
int
getAcceptanc_unid
()
{
return
acceptanc_unid
;
}
public
void
setAcceptanc_unid
(
int
acceptanc_unid
)
{
this
.
acceptanc_unid
=
acceptanc_unid
;
}
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
String
getAcceptanc_type
()
{
return
acceptanc_type
;
}
public
void
setAcceptanc_type
(
String
acceptanc_type
)
{
this
.
acceptanc_type
=
acceptanc_type
;
}
public
Date
getAcceptanc_date
()
{
return
acceptanc_date
;
}
public
void
setAcceptanc_date
(
Date
acceptanc_date
)
{
this
.
acceptanc_date
=
acceptanc_date
;
}
public
String
getAcceptanc_note
()
{
return
acceptanc_note
;
}
public
void
setAcceptanc_note
(
String
acceptanc_note
)
{
this
.
acceptanc_note
=
acceptanc_note
;
}
}
package
com
.
vion
.
financial
.
entity
;
import
java.util.Date
;
import
java.util.List
;
public
class
ProjectAcceptanc
{
private
int
acceptanc_unid
;
private
String
contract_unid
;
private
String
acceptanc_type
;
private
Date
acceptanc_date
;
private
String
acceptanc_note
;
private
List
<
Integer
>
appendix_unids
;
private
List
<
ProjectAcceptanc
>
appendix_list
;
public
int
getAcceptanc_unid
()
{
return
acceptanc_unid
;
}
public
void
setAcceptanc_unid
(
int
acceptanc_unid
)
{
this
.
acceptanc_unid
=
acceptanc_unid
;
}
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
String
getAcceptanc_type
()
{
return
acceptanc_type
;
}
public
void
setAcceptanc_type
(
String
acceptanc_type
)
{
this
.
acceptanc_type
=
acceptanc_type
;
}
public
Date
getAcceptanc_date
()
{
return
acceptanc_date
;
}
public
void
setAcceptanc_date
(
Date
acceptanc_date
)
{
this
.
acceptanc_date
=
acceptanc_date
;
}
public
String
getAcceptanc_note
()
{
return
acceptanc_note
;
}
public
void
setAcceptanc_note
(
String
acceptanc_note
)
{
this
.
acceptanc_note
=
acceptanc_note
;
}
public
List
<
ProjectAcceptanc
>
getAppendix_list
()
{
return
appendix_list
;
}
public
void
setAppendix_list
(
List
<
ProjectAcceptanc
>
appendix_list
)
{
this
.
appendix_list
=
appendix_list
;
}
public
List
<
Integer
>
getAppendix_unids
()
{
return
appendix_unids
;
}
public
void
setAppendix_unids
(
List
<
Integer
>
appendix_unids
)
{
this
.
appendix_unids
=
appendix_unids
;
}
}
code/FinancialSystem/src/main/java/com/vion/financial/mapper/ContractMapper.java
View file @
594941a
package
com
.
vion
.
financial
.
mapper
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.vion.financial.vo.ContractVo
;
import
com.vion.financial.vo.ContractsListVo
;
import
com.vion.financial.vo.SelectVo
;
public
interface
ContractMapper
{
@Transactional
public
void
addOne
(
ContractVo
contractVo
);
public
ContractVo
queryOne
(
String
contract_unid
);
@Transactional
public
void
updateOne
(
ContractVo
contractVo
);
@Transactional
public
void
deleteOne
(
String
contract_unid
);
public
ContractsListVo
selectByCondition
(
SelectVo
selectVo
);
public
boolean
isDelete
(
String
contract_unid
);
}
package
com
.
vion
.
financial
.
mapper
;
import
java.util.List
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.vion.financial.vo.ContractVo
;
import
com.vion.financial.vo.ContractsListVo
;
import
com.vion.financial.vo.SelectVo
;
public
interface
ContractMapper
{
@Transactional
public
void
addOne
(
ContractVo
contractVo
);
public
ContractVo
queryOne
(
String
contract_unid
);
@Transactional
public
void
updateOne
(
ContractVo
contractVo
);
@Transactional
public
void
deleteOne
(
String
contract_unid
);
public
List
<
String
>
queryList
();
public
ContractsListVo
selectByCondition
(
SelectVo
selectVo
);
public
boolean
isDelete
(
String
contract_unid
);
}
code/FinancialSystem/src/main/java/com/vion/financial/mapper/ProjectAcceptancMapper.java
View file @
594941a
package
com
.
vion
.
financial
.
mapper
;
import
com.vion.financial.entity.ProjectAcceptanc
;
public
interface
ProjectAcceptancMapper
{
public
Object
addProjectAcceptanc
(
ProjectAcceptanc
projectAcceptanc
);
public
ProjectAcceptanc
queryProjectAcceptanc
(
String
s
);
public
Object
updateProjectAcceptanc
(
ProjectAcceptanc
projectAcceptanc
);
public
Object
deleteProjectAcceptanc
(
int
n
);
}
package
com
.
vion
.
financial
.
mapper
;
import
java.util.List
;
import
com.vion.financial.entity.ProjectAcceptanc
;
public
interface
ProjectAcceptancMapper
{
public
void
addProjectAcceptanc
(
ProjectAcceptanc
projectAcceptanc
);
public
List
<
ProjectAcceptanc
>
queryProjectAcceptanc
(
String
s
);
public
void
updateProjectAcceptanc
(
ProjectAcceptanc
projectAcceptanc
);
public
void
deleteProjectAcceptanc
(
int
n
);
}
code/FinancialSystem/src/main/java/com/vion/financial/mapper/ProjectMapper.java
View file @
594941a
package
com
.
vion
.
financial
.
mapper
;
import
com.vion.financial.entity.Project
;
public
interface
ProjectMapper
{
public
Object
addProject
(
Project
projec
);
public
Project
queryProject
(
String
s
);
public
Object
updateProject
(
Project
project
);
public
Object
deleteProject
(
int
n
);
}
package
com
.
vion
.
financial
.
mapper
;
import
java.util.List
;
import
com.vion.financial.entity.Project
;
public
interface
ProjectMapper
{
public
void
addProject
(
Project
projec
);
public
List
<
Project
>
queryProject
();
public
void
updateProject
(
Project
project
);
public
void
deleteProject
(
int
n
);
}
code/FinancialSystem/src/main/java/com/vion/financial/mapping/AppendixMapper.xml
View file @
594941a
<?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}
and business_unid = #{business_unid}
</delete>
<?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
code/FinancialSystem/src/main/java/com/vion/financial/mapping/ContractMapper.xml
View file @
594941a
<?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>
</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.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>
code/FinancialSystem/src/main/java/com/vion/financial/mapping/ProjectAcceptancMapper.xml
View file @
594941a
<?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"
>
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"
>
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>
<?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
code/FinancialSystem/src/main/java/com/vion/financial/mapping/ProjectMapper.xml
View file @
594941a
<?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 contract_unid = #{contract_unid},project_name = #{project_name}
where project_unid = #{project_unid}
</update>
<select
id=
"queryProject"
parameterType=
"String"
>
select *
from tb_project where contract_unid = #{contract_unid}
</select>
<delete
id=
"deleteProject"
parameterType=
"int"
>
delete from tb_project where project_unid = #{project_unid}
</delete>
<?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 contract_unid = #{contract_unid},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>
<delete
id=
"deleteProject"
parameterType=
"int"
>
delete from tb_project where project_unid = #{project_unid}
</delete>
</mapper>
\ No newline at end of file
code/FinancialSystem/src/main/java/com/vion/financial/service/ContractService.java
View file @
594941a
package
com
.
vion
.
financial
.
service
;
import
com.vion.financial.vo.ContractVo
;
public
interface
ContractService
{
Object
addOne
(
ContractVo
vontractVo
);
Object
queryOne
(
String
s
);
Object
updateOne
(
ContractVo
vontractVo
);
Object
deleteOne
(
String
s
);
boolean
isDelete
(
String
s
);
}
package
com
.
vion
.
financial
.
service
;
import
com.vion.financial.vo.ContractVo
;
public
interface
ContractService
{
public
Object
addOne
(
ContractVo
vontractVo
);
public
Object
queryOne
(
String
s
);
public
Object
updateOne
(
ContractVo
vontractVo
);
public
Object
deleteOne
(
String
s
);
public
Object
queryList
();
boolean
isDelete
(
String
s
);
}
code/FinancialSystem/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
594941a
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.Appendix
;
import
com.vion.financial.mapper.AppendixMapper
;
import
com.vion.financial.mapper.ContractMapper
;
import
com.vion.financial.service.ContractService
;
import
com.vion.financial.vo.ContractVo
;
import
com.vion.financial.vo.FailCode
;
import
com.vion.financial.vo.SuccessCode
;
@Service
public
class
ContractServiceImpl
implements
ContractService
{
Logger
logger
=
LoggerFactory
.
getLogger
(
ContractServiceImpl
.
class
);
@Autowired
ContractMapper
contractMapper
;
@Autowired
AppendixMapper
appendixMapper
;
@Autowired
SuccessCode
successCode
;
@Autowired
FailCode
failCode
;
/***
* 新增合同信息
*/
@Override
public
Object
addOne
(
ContractVo
contractVo
)
{
try
{
//先插入合同信息
logger
.
info
(
"============新增合同 start ============"
);
//根据附件unid集合更新附件表信息
Appendix
appendix
=
new
Appendix
();
if
(
contractMapper
.
queryOne
(
contractVo
.
getContract_unid
())
!=
null
)
{
contractMapper
.
updateOne
(
contractVo
);
}
else
{
contractMapper
.
addOne
(
contractVo
);
}
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
contractVo
.
getContract_unid
());
for
(
int
n:
contractVo
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
n
);
appendixMapper
.
updateAppendix
(
appendix
);
}
return
successCode
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"增加合同异常:"
+
e
.
getLocalizedMessage
(),
e
);
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"增加异常"
);
return
failCode
;
}
}
@Override
public
Object
queryOne
(
String
s
)
{
try
{
logger
.
info
(
"================查询合同start==================="
);
ContractVo
contractVo
=
contractMapper
.
queryOne
(
s
);
Appendix
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
s
);
List
<
Appendix
>
appendixs
=
appendixMapper
.
queryAppendixList
(
appendix
);
contractVo
.
setAppendix_list
(
appendixs
);
return
contractVo
;
}
catch
(
Exception
e
)
{
// TODO: handle exception
/* return failCode;*/
logger
.
error
(
"查询合同异常"
+
e
.
getLocalizedMessage
(),
e
);
e
.
printStackTrace
();
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"查询异常"
);
return
failCode
;
}
}
@Override
public
Object
updateOne
(
ContractVo
vontractVo
)
{
try
{
logger
.
info
(
"======================修改合同start====================="
);
contractMapper
.
updateOne
(
vontractVo
);
Appendix
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
vontractVo
.
getContract_unid
());
for
(
int
n:
vontractVo
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
n
);
appendixMapper
.
updateAppendix
(
appendix
);
}
return
successCode
;
}
catch
(
Exception
e
)
{
// TODO: handle exception
logger
.
error
(
"修改合同异常"
+
e
.
getLocalizedMessage
(),
e
);
e
.
printStackTrace
();
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"修改异常"
);
return
failCode
;
}
}
@Override
public
Object
deleteOne
(
String
s
)
{
try
{
logger
.
info
(
"=================删除合同================="
);
//contractMapper.updateSingleContract(contractVo);
contractMapper
.
deleteOne
(
s
);
return
successCode
;
}
catch
(
Exception
e
)
{
logger
.
error
(
"删除合同异常"
+
e
.
getLocalizedMessage
(),
e
);
e
.
printStackTrace
();
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"删除异常"
);
return
failCode
;
}
}
public
boolean
isDelete
(
String
s
)
{
return
contractMapper
.
isDelete
(
s
);
}
}
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.Appendix
;
import
com.vion.financial.mapper.AppendixMapper
;
import
com.vion.financial.mapper.ContractMapper
;
import
com.vion.financial.service.ContractService
;
import
com.vion.financial.vo.ContractVo
;
import
com.vion.financial.vo.FailCode
;
import
com.vion.financial.vo.SuccessCode
;
@Service
public
class
ContractServiceImpl
implements
ContractService
{
Logger
logger
=
LoggerFactory
.
getLogger
(
ContractServiceImpl
.
class
);
@Autowired
ContractMapper
contractMapper
;
@Autowired
AppendixMapper
appendixMapper
;
@Autowired
SuccessCode
successCode
;
@Autowired
FailCode
failCode
;
/***
* 新增合同信息
*/
@Override
public
Object
addOne
(
ContractVo
contractVo
)
{
try
{
//先插入合同信息
logger
.
info
(
"============新增合同 start ============"
);
//根据附件unid集合更新附件表信息
Appendix
appendix
=
new
Appendix
();
if
(
contractMapper
.
queryOne
(
contractVo
.
getContract_unid
())
!=
null
)
{
contractMapper
.
updateOne
(
contractVo
);
}
else
{
contractMapper
.
addOne
(
contractVo
);
}
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
contractVo
.
getContract_unid
());
for
(
int
n:
contractVo
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
n
);
appendixMapper
.
updateAppendix
(
appendix
);
}
return
successCode
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"增加合同异常:"
+
e
.
getLocalizedMessage
(),
e
);
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"增加异常"
);
return
failCode
;
}
}
@Override
public
Object
queryOne
(
String
s
)
{
try
{
logger
.
info
(
"================查询合同start==================="
);
ContractVo
contractVo
=
contractMapper
.
queryOne
(
s
);
Appendix
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
s
);
List
<
Appendix
>
appendixs
=
appendixMapper
.
queryAppendixList
(
appendix
);
contractVo
.
setAppendix_list
(
appendixs
);
return
contractVo
;
}
catch
(
Exception
e
)
{
// TODO: handle exception
/* return failCode;*/
logger
.
error
(
"查询合同异常"
+
e
.
getLocalizedMessage
(),
e
);
e
.
printStackTrace
();
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"查询异常"
);
return
failCode
;
}
}
@Override
public
Object
updateOne
(
ContractVo
vontractVo
)
{
try
{
logger
.
info
(
"======================修改合同start====================="
);
contractMapper
.
updateOne
(
vontractVo
);
Appendix
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
vontractVo
.
getContract_unid
());
for
(
int
n:
vontractVo
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
n
);
appendixMapper
.
updateAppendix
(
appendix
);
}
return
successCode
;
}
catch
(
Exception
e
)
{
// TODO: handle exception
logger
.
error
(
"修改合同异常"
+
e
.
getLocalizedMessage
(),
e
);
e
.
printStackTrace
();
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"修改异常"
);
return
failCode
;
}
}
@Override
public
Object
deleteOne
(
String
s
)
{
try
{
logger
.
info
(
"=================删除合同================="
);
//contractMapper.updateSingleContract(contractVo);
contractMapper
.
deleteOne
(
s
);
return
successCode
;
}
catch
(
Exception
e
)
{
logger
.
error
(
"删除合同异常"
+
e
.
getLocalizedMessage
(),
e
);
e
.
printStackTrace
();
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"删除异常"
);
return
failCode
;
}
}
public
boolean
isDelete
(
String
s
)
{
return
contractMapper
.
isDelete
(
s
);
}
@Override
public
Object
queryList
()
{
// TODO Auto-generated method stub
try
{
logger
.
info
(
"=================查询合同编号================="
);
return
contractMapper
.
queryList
();
}
catch
(
Exception
e
)
{
// TODO: handle exception
logger
.
error
(
"查询合同列表异常"
+
e
.
getLocalizedMessage
(),
e
);
e
.
printStackTrace
();
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"查询异常"
);
return
failCode
;
}
}
}
code/FinancialSystem/src/main/java/com/vion/financial/service/imp/DeliverGoodsServiceImpl.java
View file @
594941a
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.entity.Appendix
;
import
com.vion.financial.entity.DeliverGoods
;
import
com.vion.financial.mapper.DeliverGoodsMapper
;
import
com.vion.financial.service.AppendixService
;
import
com.vion.financial.service.ContractService
;
import
com.vion.financial.service.DeliverGoodsService
;
import
com.vion.financial.vo.DeliverGoodsVo
;
import
com.vion.financial.vo.FailCode
;
import
com.vion.financial.vo.SuccessCode
;
@Service
public
class
DeliverGoodsServiceImpl
implements
DeliverGoodsService
{
Logger
logger
=
LoggerFactory
.
getLogger
(
DeliverGoodsServiceImpl
.
class
);
@Autowired
SuccessCode
successCode
;
@Autowired
FailCode
failCode
;
@Autowired
DeliverGoodsMapper
deliverGoodsMapper
;
@Autowired
ContractService
contractService
;
@Autowired
AppendixService
appendixService
;
@Override
public
Object
addDeliverGoods
(
DeliverGoodsVo
deliverGoodsVo
,
String
s
)
{
// TODO Auto-generated method stub
try
{
Appendix
appendix
=
new
Appendix
();
logger
.
info
(
"=====================增加发货信息====================="
);
if
((
boolean
)
contractService
.
isDelete
(
s
))
{
List
<
DeliverGoods
>
list
=
deliverGoodsVo
.
getList_deliver_data
();
for
(
DeliverGoods
deliverGoods:
list
)
{
deliverGoods
.
setContract_unid
(
s
);
deliverGoodsMapper
.
addDeliverGoods
(
deliverGoods
);
for
(
int
appendixUnid:
deliverGoodsVo
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
appendixUnid
);
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
appendix
.
setBusiness_unid
(
String
.
valueOf
(
deliverGoods
.
getDeliver_unid
()));
}
}
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
queryDeliverGoods
(
String
s
)
{
try
{
DeliverGoodsVo
deliverGoodsVo
=
new
DeliverGoodsVo
();
deliverGoodsVo
.
setList_deliver_data
(
new
ArrayList
());
Appendix
appendix
=
null
;
logger
.
info
(
"========================查询发货信息========================"
);
if
(
contractService
.
isDelete
(
s
))
{
List
<
DeliverGoods
>
list
=
deliverGoodsMapper
.
queryDeliverGoods
(
s
);
for
(
DeliverGoods
deliverGoods:
list
)
{
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
appendix
.
setBusiness_unid
(
String
.
valueOf
(
deliverGoods
.
getDeliver_unid
()));
Object
o
=
appendixService
.
queryAppendixList
(
appendix
);
deliverGoods
.
setAppendix_list
(
o
==
null
?
null
:
(
List
)
o
);
deliverGoodsVo
.
getList_deliver_data
().
add
(
deliverGoods
);
}
}
else
{
failCode
.
setEnode
(
"100"
);
failCode
.
setEnode
(
"合同已删除"
);
return
failCode
;
}
return
deliverGoodsVo
;
}
catch
(
Exception
e
)
{
// TODO: handle exception
logger
.
error
(
"查询发货信息异常"
+
e
.
getLocalizedMessage
(),
e
);
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"查询异常"
);
return
failCode
;
}
}
@Override
public
Object
updateDeliverGoods
(
DeliverGoodsVo
deliverGoodsVo
,
String
s
)
{
// TODO Auto-generated method stub
try
{
logger
.
info
(
"===========================修改发货信息==========================="
);
if
(
contractService
.
isDelete
(
s
))
{
List
<
DeliverGoods
>
list_deliver_data
=
deliverGoodsVo
.
getList_deliver_data
();
for
(
DeliverGoods
deliverGoods:
list_deliver_data
)
{
deliverGoodsMapper
.
updateDeliverGoods
(
deliverGoods
);
}
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
deleteDeliverGoods
(
DeliverGoodsVo
deliverGoodsVo
,
String
s
)
{
// TODO Auto-generated method stub
return
null
;
}
}
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.entity.Appendix
;
import
com.vion.financial.entity.DeliverGoods
;
import
com.vion.financial.entity.Receipt
;
import
com.vion.financial.mapper.DeliverGoodsMapper
;
import
com.vion.financial.service.AppendixService
;
import
com.vion.financial.service.ContractService
;
import
com.vion.financial.service.DeliverGoodsService
;
import
com.vion.financial.vo.DeliverGoodsVo
;
import
com.vion.financial.vo.FailCode
;
import
com.vion.financial.vo.SuccessCode
;
@Service
public
class
DeliverGoodsServiceImpl
implements
DeliverGoodsService
{
Logger
logger
=
LoggerFactory
.
getLogger
(
DeliverGoodsServiceImpl
.
class
);
@Autowired
SuccessCode
successCode
;
@Autowired
FailCode
failCode
;
@Autowired
DeliverGoodsMapper
deliverGoodsMapper
;
@Autowired
ContractService
contractService
;
@Autowired
AppendixService
appendixService
;
@Override
public
Object
addDeliverGoods
(
DeliverGoodsVo
deliverGoodsVo
,
String
s
)
{
// TODO Auto-generated method stub
try
{
Appendix
appendix
=
new
Appendix
();
logger
.
info
(
"=====================增加发货信息====================="
);
if
((
boolean
)
contractService
.
isDelete
(
s
))
{
List
<
DeliverGoods
>
list
=
deliverGoodsVo
.
getList_deliver_data
();
for
(
DeliverGoods
deliverGoods:
list
)
{
deliverGoods
.
setContract_unid
(
s
);
deliverGoodsMapper
.
addDeliverGoods
(
deliverGoods
);
for
(
int
appendixUnid:
deliverGoods
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
appendixUnid
);
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
appendix
.
setBusiness_unid
(
String
.
valueOf
(
deliverGoods
.
getDeliver_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
queryDeliverGoods
(
String
s
)
{
try
{
DeliverGoodsVo
deliverGoodsVo
=
new
DeliverGoodsVo
();
deliverGoodsVo
.
setList_deliver_data
(
new
ArrayList
());
Appendix
appendix
=
null
;
logger
.
info
(
"========================查询发货信息========================"
);
if
(
contractService
.
isDelete
(
s
))
{
List
<
DeliverGoods
>
list
=
deliverGoodsMapper
.
queryDeliverGoods
(
s
);
for
(
DeliverGoods
deliverGoods:
list
)
{
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
appendix
.
setBusiness_unid
(
String
.
valueOf
(
deliverGoods
.
getDeliver_unid
()));
Object
o
=
appendixService
.
queryAppendixList
(
appendix
);
deliverGoods
.
setList_deliver_data
(
o
==
null
?
null
:
(
List
)
o
);
deliverGoodsVo
.
getList_deliver_data
().
add
(
deliverGoods
);
}
}
else
{
failCode
.
setEnode
(
"100"
);
failCode
.
setEnode
(
"合同已删除"
);
return
failCode
;
}
return
deliverGoodsVo
;
}
catch
(
Exception
e
)
{
// TODO: handle exception
logger
.
error
(
"查询发货信息异常"
+
e
.
getLocalizedMessage
(),
e
);
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"查询异常"
);
return
failCode
;
}
}
@Override
public
Object
updateDeliverGoods
(
DeliverGoodsVo
deliverGoodsVo
,
String
s
)
{
// TODO Auto-generated method stub
try
{
logger
.
info
(
"===========================修改发货信息==========================="
);
if
(
contractService
.
isDelete
(
s
))
{
List
<
DeliverGoods
>
list_deliver_data
=
deliverGoodsVo
.
getList_deliver_data
();
for
(
DeliverGoods
deliverGoods:
list_deliver_data
)
{
deliverGoodsMapper
.
updateDeliverGoods
(
deliverGoods
);
}
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
deleteDeliverGoods
(
DeliverGoodsVo
deliverGoodsVo
,
String
s
)
{
// TODO Auto-generated method stub
try
{
logger
.
info
(
"=========================删除合同发货信息======================="
);
if
(
contractService
.
isDelete
(
s
))
{
for
(
int
receiptUnid
:
deliverGoodsVo
.
getDeliver_unids
())
{
deliverGoodsMapper
.
deleteDeliverGoods
(
receiptUnid
);;
}
return
successCode
;
}
else
{
failCode
.
setEnode
(
"100"
);
failCode
.
setEnote
(
"合同已删除"
);
return
failCode
;
}
}
catch
(
Exception
e
)
{
logger
.
error
(
"删除发货信息异常"
+
e
.
getLocalizedMessage
(),
e
);
failCode
.
setEnode
(
"500"
);
failCode
.
setEnode
(
"删除异常"
);
return
failCode
;
}
}
}
code/FinancialSystem/src/main/java/com/vion/financial/vo/ContractVo.java
View file @
594941a
package
com
.
vion
.
financial
.
vo
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
com.vion.financial.entity.Appendix
;
import
com.vion.financial.entity.PaymentAgree
;
@JsonInclude
(
value
=
Include
.
NON_NULL
)
public
class
ContractVo
extends
SelectVo
{
private
String
contract_unid
;
private
String
salesperson_unid
;
private
int
project_unid
;
private
int
customer_unid
;
private
String
province
;
private
String
city
;
private
String
county
;
private
int
guarantee_period
;
private
Date
sign_date
;
private
String
product_line_type
;
private
String
contract_state
;
private
String
contract_type
;
private
double
contract_amount
;
private
double
deduct_amount
;
private
String
contract_amount_note
;
private
double
stop_amount
;
private
String
reback_note
;
private
double
exemptions_amount
;
private
String
contract_remain_note
;
private
boolean
is_archive
;
private
double
bad_amount
;
private
String
bad_amount_note
;
private
double
confirm_income_amount
;
private
String
amount_state_unid
;
private
Date
start_guarantee_date
;
private
Date
end_guarantee_date
;
private
String
mainten_start_point
;
private
String
contract_note
;
private
boolean
is_delete
;
private
List
<
Integer
>
appendix_unids
;
private
List
<
Appendix
>
appendix_list
;
private
String
business_table
;
private
String
business_unid
;
private
List
<
PaymentAgree
>
paymentAgree_list
;
//private List<> payment_data;
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
String
getSalesperson_unid
()
{
return
salesperson_unid
;
}
public
void
setSalesperson_unid
(
String
salesperson_unid
)
{
this
.
salesperson_unid
=
salesperson_unid
;
}
public
int
getProject_unid
()
{
return
project_unid
;
}
public
void
setProject_unid
(
int
project_unid
)
{
this
.
project_unid
=
project_unid
;
}
public
int
getCustomer_unid
()
{
return
customer_unid
;
}
public
void
setCustomer_unid
(
int
customer_unid
)
{
this
.
customer_unid
=
customer_unid
;
}
public
String
getProvince
()
{
return
province
;
}
public
void
setProvince
(
String
province
)
{
this
.
province
=
province
;
}
public
String
getCity
()
{
return
city
;
}
public
void
setCity
(
String
city
)
{
this
.
city
=
city
;
}
public
String
getCounty
()
{
return
county
;
}
public
void
setCounty
(
String
county
)
{
this
.
county
=
county
;
}
public
int
getGuarantee_period
()
{
return
guarantee_period
;
}
public
void
setGuarantee_period
(
int
guarantee_period
)
{
this
.
guarantee_period
=
guarantee_period
;
}
public
Date
getSign_date
()
{
return
sign_date
;
}
public
void
setSign_date
(
Date
sign_date
)
{
this
.
sign_date
=
sign_date
;
}
public
String
getProduct_line_type
()
{
return
product_line_type
;
}
public
void
setProduct_line_type
(
String
product_line_type
)
{
this
.
product_line_type
=
product_line_type
;
}
public
String
getContract_state
()
{
return
contract_state
;
}
public
void
setContract_state
(
String
contract_state
)
{
this
.
contract_state
=
contract_state
;
}
public
String
getContract_type
()
{
return
contract_type
;
}
public
void
setContract_type
(
String
contract_type
)
{
this
.
contract_type
=
contract_type
;
}
public
double
getContract_amount
()
{
return
contract_amount
;
}
public
void
setContract_amount
(
double
contract_amount
)
{
this
.
contract_amount
=
contract_amount
;
}
public
double
getDeduct_amount
()
{
return
deduct_amount
;
}
public
void
setDeduct_amount
(
double
deduct_amount
)
{
this
.
deduct_amount
=
deduct_amount
;
}
public
String
getContract_amount_note
()
{
return
contract_amount_note
;
}
public
void
setContract_amount_note
(
String
contract_amount_note
)
{
this
.
contract_amount_note
=
contract_amount_note
;
}
public
double
getStop_amount
()
{
return
stop_amount
;
}
public
void
setStop_amount
(
double
stop_amount
)
{
this
.
stop_amount
=
stop_amount
;
}
public
String
getReback_note
()
{
return
reback_note
;
}
public
void
setReback_note
(
String
reback_note
)
{
this
.
reback_note
=
reback_note
;
}
public
double
getExemptions_amount
()
{
return
exemptions_amount
;
}
public
void
setExemptions_amount
(
double
exemptions_amount
)
{
this
.
exemptions_amount
=
exemptions_amount
;
}
public
String
getContract_remain_note
()
{
return
contract_remain_note
;
}
public
void
setContract_remain_note
(
String
contract_remain_note
)
{
this
.
contract_remain_note
=
contract_remain_note
;
}
public
boolean
isIs_archive
()
{
return
is_archive
;
}
public
void
setIs_archive
(
boolean
is_archive
)
{
this
.
is_archive
=
is_archive
;
}
public
double
getBad_amount
()
{
return
bad_amount
;
}
public
void
setBad_amount
(
double
bad_amount
)
{
this
.
bad_amount
=
bad_amount
;
}
public
String
getBad_amount_note
()
{
return
bad_amount_note
;
}
public
void
setBad_amount_note
(
String
bad_amount_note
)
{
this
.
bad_amount_note
=
bad_amount_note
;
}
public
double
getConfirm_income_amount
()
{
return
confirm_income_amount
;
}
public
void
setConfirm_income_amount
(
double
confirm_income_amount
)
{
this
.
confirm_income_amount
=
confirm_income_amount
;
}
public
String
getAmount_state_unid
()
{
return
amount_state_unid
;
}
public
void
setAmount_state_unid
(
String
amount_state_unid
)
{
this
.
amount_state_unid
=
amount_state_unid
;
}
public
Date
getStart_guarantee_date
()
{
return
start_guarantee_date
;
}
public
void
setStart_guarantee_date
(
Date
start_guarantee_date
)
{
this
.
start_guarantee_date
=
start_guarantee_date
;
}
public
Date
getEnd_guarantee_date
()
{
return
end_guarantee_date
;
}
public
void
setEnd_guarantee_date
(
Date
end_guarantee_date
)
{
this
.
end_guarantee_date
=
end_guarantee_date
;
}
public
String
getMainten_start_point
()
{
return
mainten_start_point
;
}
public
void
setMainten_start_point
(
String
mainten_start_point
)
{
this
.
mainten_start_point
=
mainten_start_point
;
}
public
String
getContract_note
()
{
return
contract_note
;
}
public
void
setContract_note
(
String
contract_note
)
{
this
.
contract_note
=
contract_note
;
}
public
boolean
isIs_delete
()
{
return
is_delete
;
}
public
void
setIs_delete
(
boolean
is_delete
)
{
this
.
is_delete
=
is_delete
;
}
public
List
<
Integer
>
getAppendix_unids
()
{
return
appendix_unids
;
}
public
void
setAppendix_unids
(
List
<
Integer
>
appendix_unids
)
{
this
.
appendix_unids
=
appendix_unids
;
}
public
String
getBusiness_table
()
{
return
business_table
;
}
public
void
setBusiness_table
(
String
business_table
)
{
this
.
business_table
=
business_table
;
}
public
String
getBusiness_unid
()
{
return
business_unid
;
}
public
void
setBusiness_unid
(
String
business_unid
)
{
this
.
business_unid
=
business_unid
;
}
public
List
<
Appendix
>
getAppendix_list
()
{
return
appendix_list
;
}
public
void
setAppendix_list
(
List
<
Appendix
>
appendix_list
)
{
this
.
appendix_list
=
appendix_list
;
}
public
List
<
PaymentAgree
>
getPaymentAgree_list
()
{
return
paymentAgree_list
;
}
public
void
setPaymentAgree_list
(
List
<
PaymentAgree
>
paymentAgree_list
)
{
this
.
paymentAgree_list
=
paymentAgree_list
;
}
}
package
com
.
vion
.
financial
.
vo
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
com.vion.financial.entity.Appendix
;
import
com.vion.financial.entity.PaymentAgree
;
@JsonInclude
(
value
=
Include
.
NON_NULL
)
public
class
ContractVo
extends
SelectVo
{
private
String
contract_unid
;
private
String
salesperson_unid
;
private
int
project_unid
;
private
int
customer_unid
;
private
String
province
;
private
String
city
;
private
String
county
;
private
int
guarantee_period
;
private
Date
sign_date
;
private
String
product_line_type
;
private
String
contract_state
;
private
String
contract_type
;
private
double
contract_amount
;
private
double
deduct_amount
;
private
String
contract_amount_note
;
private
double
stop_amount
;
private
String
reback_note
;
private
double
exemptions_amount
;
private
String
contract_remain_note
;
private
boolean
is_archive
;
private
double
bad_amount
;
private
String
bad_amount_note
;
private
double
confirm_income_amount
;
private
String
amount_state_unid
;
private
Date
start_guarantee_date
;
private
Date
end_guarantee_date
;
private
String
mainten_start_point
;
private
String
contract_note
;
private
boolean
is_delete
;
private
List
<
Integer
>
appendix_unids
;
private
List
<
Appendix
>
appendix_list
;
private
String
business_table
;
private
String
business_unid
;
private
List
<
PaymentAgree
>
paymentAgree_list
;
private
List
<
String
>
contract_unids
;
//private List<> payment_data;
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
String
getSalesperson_unid
()
{
return
salesperson_unid
;
}
public
void
setSalesperson_unid
(
String
salesperson_unid
)
{
this
.
salesperson_unid
=
salesperson_unid
;
}
public
int
getProject_unid
()
{
return
project_unid
;
}
public
void
setProject_unid
(
int
project_unid
)
{
this
.
project_unid
=
project_unid
;
}
public
int
getCustomer_unid
()
{
return
customer_unid
;
}
public
void
setCustomer_unid
(
int
customer_unid
)
{
this
.
customer_unid
=
customer_unid
;
}
public
String
getProvince
()
{
return
province
;
}
public
void
setProvince
(
String
province
)
{
this
.
province
=
province
;
}
public
String
getCity
()
{
return
city
;
}
public
void
setCity
(
String
city
)
{
this
.
city
=
city
;
}
public
String
getCounty
()
{
return
county
;
}
public
void
setCounty
(
String
county
)
{
this
.
county
=
county
;
}
public
int
getGuarantee_period
()
{
return
guarantee_period
;
}
public
void
setGuarantee_period
(
int
guarantee_period
)
{
this
.
guarantee_period
=
guarantee_period
;
}
public
Date
getSign_date
()
{
return
sign_date
;
}
public
void
setSign_date
(
Date
sign_date
)
{
this
.
sign_date
=
sign_date
;
}
public
String
getProduct_line_type
()
{
return
product_line_type
;
}
public
void
setProduct_line_type
(
String
product_line_type
)
{
this
.
product_line_type
=
product_line_type
;
}
public
String
getContract_state
()
{
return
contract_state
;
}
public
void
setContract_state
(
String
contract_state
)
{
this
.
contract_state
=
contract_state
;
}
public
String
getContract_type
()
{
return
contract_type
;
}
public
void
setContract_type
(
String
contract_type
)
{
this
.
contract_type
=
contract_type
;
}
public
double
getContract_amount
()
{
return
contract_amount
;
}
public
void
setContract_amount
(
double
contract_amount
)
{
this
.
contract_amount
=
contract_amount
;
}
public
double
getDeduct_amount
()
{
return
deduct_amount
;
}
public
void
setDeduct_amount
(
double
deduct_amount
)
{
this
.
deduct_amount
=
deduct_amount
;
}
public
String
getContract_amount_note
()
{
return
contract_amount_note
;
}
public
void
setContract_amount_note
(
String
contract_amount_note
)
{
this
.
contract_amount_note
=
contract_amount_note
;
}
public
double
getStop_amount
()
{
return
stop_amount
;
}
public
void
setStop_amount
(
double
stop_amount
)
{
this
.
stop_amount
=
stop_amount
;
}
public
String
getReback_note
()
{
return
reback_note
;
}
public
void
setReback_note
(
String
reback_note
)
{
this
.
reback_note
=
reback_note
;
}
public
double
getExemptions_amount
()
{
return
exemptions_amount
;
}
public
void
setExemptions_amount
(
double
exemptions_amount
)
{
this
.
exemptions_amount
=
exemptions_amount
;
}
public
String
getContract_remain_note
()
{
return
contract_remain_note
;
}
public
void
setContract_remain_note
(
String
contract_remain_note
)
{
this
.
contract_remain_note
=
contract_remain_note
;
}
public
boolean
isIs_archive
()
{
return
is_archive
;
}
public
void
setIs_archive
(
boolean
is_archive
)
{
this
.
is_archive
=
is_archive
;
}
public
double
getBad_amount
()
{
return
bad_amount
;
}
public
void
setBad_amount
(
double
bad_amount
)
{
this
.
bad_amount
=
bad_amount
;
}
public
String
getBad_amount_note
()
{
return
bad_amount_note
;
}
public
void
setBad_amount_note
(
String
bad_amount_note
)
{
this
.
bad_amount_note
=
bad_amount_note
;
}
public
double
getConfirm_income_amount
()
{
return
confirm_income_amount
;
}
public
void
setConfirm_income_amount
(
double
confirm_income_amount
)
{
this
.
confirm_income_amount
=
confirm_income_amount
;
}
public
String
getAmount_state_unid
()
{
return
amount_state_unid
;
}
public
void
setAmount_state_unid
(
String
amount_state_unid
)
{
this
.
amount_state_unid
=
amount_state_unid
;
}
public
Date
getStart_guarantee_date
()
{
return
start_guarantee_date
;
}
public
void
setStart_guarantee_date
(
Date
start_guarantee_date
)
{
this
.
start_guarantee_date
=
start_guarantee_date
;
}
public
Date
getEnd_guarantee_date
()
{
return
end_guarantee_date
;
}
public
void
setEnd_guarantee_date
(
Date
end_guarantee_date
)
{
this
.
end_guarantee_date
=
end_guarantee_date
;
}
public
String
getMainten_start_point
()
{
return
mainten_start_point
;
}
public
void
setMainten_start_point
(
String
mainten_start_point
)
{
this
.
mainten_start_point
=
mainten_start_point
;
}
public
String
getContract_note
()
{
return
contract_note
;
}
public
void
setContract_note
(
String
contract_note
)
{
this
.
contract_note
=
contract_note
;
}
public
boolean
isIs_delete
()
{
return
is_delete
;
}
public
void
setIs_delete
(
boolean
is_delete
)
{
this
.
is_delete
=
is_delete
;
}
public
List
<
Integer
>
getAppendix_unids
()
{
return
appendix_unids
;
}
public
void
setAppendix_unids
(
List
<
Integer
>
appendix_unids
)
{
this
.
appendix_unids
=
appendix_unids
;
}
public
String
getBusiness_table
()
{
return
business_table
;
}
public
void
setBusiness_table
(
String
business_table
)
{
this
.
business_table
=
business_table
;
}
public
String
getBusiness_unid
()
{
return
business_unid
;
}
public
void
setBusiness_unid
(
String
business_unid
)
{
this
.
business_unid
=
business_unid
;
}
public
List
<
Appendix
>
getAppendix_list
()
{
return
appendix_list
;
}
public
void
setAppendix_list
(
List
<
Appendix
>
appendix_list
)
{
this
.
appendix_list
=
appendix_list
;
}
public
List
<
PaymentAgree
>
getPaymentAgree_list
()
{
return
paymentAgree_list
;
}
public
void
setPaymentAgree_list
(
List
<
PaymentAgree
>
paymentAgree_list
)
{
this
.
paymentAgree_list
=
paymentAgree_list
;
}
public
List
<
String
>
getContract_unids
()
{
return
contract_unids
;
}
public
void
setContract_unids
(
List
<
String
>
contract_unids
)
{
this
.
contract_unids
=
contract_unids
;
}
}
code/FinancialSystem/src/main/java/com/vion/financial/vo/DeliverGoodsVo.java
View file @
594941a
package
com
.
vion
.
financial
.
vo
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
com.vion.financial.entity.Appendix
;
import
com.vion.financial.entity.DeliverGoods
;
@JsonInclude
(
value
=
Include
.
NON_NULL
)
public
class
DeliverGoodsVo
{
private
Integer
deliver_unid
;
private
String
contract_unid
;
private
Date
deliver_goods_date
;
private
Date
goods_acceptanc_date
;
List
<
DeliverGoods
>
list_deliver_data
;
List
<
Integer
>
appendix_unids
;
public
List
<
DeliverGoods
>
getList_deliver_data
()
{
return
list_deliver_data
;
}
public
void
setList_deliver_data
(
List
<
DeliverGoods
>
list_deliver_data
)
{
this
.
list_deliver_data
=
list_deliver_data
;
}
public
Integer
getDeliver_unid
()
{
return
deliver_unid
;
}
public
void
setDeliver_unid
(
Integer
deliver_unid
)
{
this
.
deliver_unid
=
deliver_unid
;
}
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
Date
getDeliver_goods_date
()
{
return
deliver_goods_date
;
}
public
void
setDeliver_goods_date
(
Date
deliver_goods_date
)
{
this
.
deliver_goods_date
=
deliver_goods_date
;
}
public
Date
getGoods_acceptanc_date
()
{
return
goods_acceptanc_date
;
}
public
void
setGoods_acceptanc_date
(
Date
goods_acceptanc_date
)
{
this
.
goods_acceptanc_date
=
goods_acceptanc_date
;
}
public
List
<
Integer
>
getAppendix_unids
()
{
return
appendix_unids
;
}
public
void
setAppendix_unids
(
List
<
Integer
>
appendix_unids
)
{
this
.
appendix_unids
=
appendix_unids
;
}
}
package
com
.
vion
.
financial
.
vo
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude.Include
;
import
com.vion.financial.entity.Appendix
;
import
com.vion.financial.entity.DeliverGoods
;
@JsonInclude
(
value
=
Include
.
NON_NULL
)
public
class
DeliverGoodsVo
{
private
Integer
deliver_unid
;
private
String
contract_unid
;
private
Date
deliver_goods_date
;
private
Date
goods_acceptanc_date
;
List
<
DeliverGoods
>
list_deliver_data
;
List
<
Integer
>
deliver_unids
;
public
List
<
DeliverGoods
>
getList_deliver_data
()
{
return
list_deliver_data
;
}
public
void
setList_deliver_data
(
List
<
DeliverGoods
>
list_deliver_data
)
{
this
.
list_deliver_data
=
list_deliver_data
;
}
public
Integer
getDeliver_unid
()
{
return
deliver_unid
;
}
public
void
setDeliver_unid
(
Integer
deliver_unid
)
{
this
.
deliver_unid
=
deliver_unid
;
}
public
String
getContract_unid
()
{
return
contract_unid
;
}
public
void
setContract_unid
(
String
contract_unid
)
{
this
.
contract_unid
=
contract_unid
;
}
public
Date
getDeliver_goods_date
()
{
return
deliver_goods_date
;
}
public
void
setDeliver_goods_date
(
Date
deliver_goods_date
)
{
this
.
deliver_goods_date
=
deliver_goods_date
;
}
public
Date
getGoods_acceptanc_date
()
{
return
goods_acceptanc_date
;
}
public
void
setGoods_acceptanc_date
(
Date
goods_acceptanc_date
)
{
this
.
goods_acceptanc_date
=
goods_acceptanc_date
;
}
public
List
<
Integer
>
getDeliver_unids
()
{
return
deliver_unids
;
}
public
void
setDeliver_unids
(
List
<
Integer
>
deliver_unids
)
{
this
.
deliver_unids
=
deliver_unids
;
}
}
code/FinancialSystem/src/main/resources/application.yml
View file @
594941a
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
hikari
:
connection-timeout
:
1800000
maximum-pool-size
:
20
# 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
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
hikari
:
connection-timeout
:
30000
maximum-pool-size
:
20
dbcp2
:
max-total
:
20
pool-prepared-statements
:
true
# 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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment