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 9bee4c57
authored
Aug 24, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
245465454
1 parent
9ea57630
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
23 deletions
code/finance_serv/src/main/java/com/vion/financial/excel/ImportModel.java
code/finance_serv/src/main/java/com/vion/financial/mapper/ContractMapper.java
code/finance_serv/src/main/java/com/vion/financial/mapping/ContractMapper.xml
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/excel/ImportModel.java
View file @
9bee4c5
...
@@ -85,8 +85,8 @@ public class ImportModel {
...
@@ -85,8 +85,8 @@ public class ImportModel {
private
Date
start_guarantee_date
;
private
Date
start_guarantee_date
;
@Excel
(
name
=
"维保服务期结束节点"
)
@Excel
(
name
=
"维保服务期结束节点"
)
private
Date
end_guarantee_date
;
private
Date
end_guarantee_date
;
@Excel
(
name
=
"质保期开始节点"
)
/*
@Excel(name="质保期开始节点")
private
String
mainten_start_point
;
private String mainten_start_point;
*/
@Excel
(
name
=
"折扣金额备注"
)
@Excel
(
name
=
"折扣金额备注"
)
private
String
deduct_amount_note
;
private
String
deduct_amount_note
;
@Excel
(
name
=
"暂停金额备注"
)
@Excel
(
name
=
"暂停金额备注"
)
...
@@ -454,14 +454,14 @@ public class ImportModel {
...
@@ -454,14 +454,14 @@ public class ImportModel {
this
.
end_guarantee_date
=
end_guarantee_date
;
this
.
end_guarantee_date
=
end_guarantee_date
;
}
}
public
String
getMainten_start_point
()
{
/*
public String getMainten_start_point() {
return mainten_start_point;
return mainten_start_point;
}
}
public void setMainten_start_point(String mainten_start_point) {
public void setMainten_start_point(String mainten_start_point) {
this.mainten_start_point = mainten_start_point;
this.mainten_start_point = mainten_start_point;
}
}
*/
public
String
getDeduct_amount_note
()
{
public
String
getDeduct_amount_note
()
{
return
deduct_amount_note
;
return
deduct_amount_note
;
}
}
...
...
code/finance_serv/src/main/java/com/vion/financial/mapper/ContractMapper.java
View file @
9bee4c5
...
@@ -21,4 +21,5 @@ public interface ContractMapper {
...
@@ -21,4 +21,5 @@ public interface ContractMapper {
int
count
(
SelectVo
selectVo
);
int
count
(
SelectVo
selectVo
);
Boolean
isDelete
(
String
contract_unid
);
Boolean
isDelete
(
String
contract_unid
);
List
<
ExportModel
>
exportContracts
(
SelectVo
selectVo
);
List
<
ExportModel
>
exportContracts
(
SelectVo
selectVo
);
void
actualDeleteOne
(
String
contract_unid
);
}
}
code/finance_serv/src/main/java/com/vion/financial/mapping/ContractMapper.xml
View file @
9bee4c5
...
@@ -708,4 +708,7 @@
...
@@ -708,4 +708,7 @@
<select
id=
"countNumber"
resultType=
"int"
>
<select
id=
"countNumber"
resultType=
"int"
>
select count(contract_unid) from tb_contract where is_delete=false
select count(contract_unid) from tb_contract where is_delete=false
</select>
</select>
<delete
id=
"actualDeleteOne"
parameterType=
"String"
>
delete from tb_contract where contract_unid = #{contract_unid}
</delete>
</mapper>
</mapper>
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
9bee4c5
...
@@ -501,17 +501,17 @@ public class ContractServiceImpl implements ContractService {
...
@@ -501,17 +501,17 @@ public class ContractServiceImpl implements ContractService {
if
(
exportModel
.
getProduct_line_type
()!=
null
)
{
if
(
exportModel
.
getProduct_line_type
()!=
null
)
{
switch
(
exportModel
.
getProduct_line_type
())
{
switch
(
exportModel
.
getProduct_line_type
())
{
case
"20001"
:
case
"20001"
:
exportModel
.
setProduct_line_type_name
(
"
安防
"
);
exportModel
.
setProduct_line_type_name
(
"
智慧城市
"
);
break
;
break
;
case
"20002"
:
case
"20002"
:
exportModel
.
setProduct_line_type_name
(
"
交通
"
);
exportModel
.
setProduct_line_type_name
(
"
智慧商业
"
);
break
;
break
;
case
"20003"
:
case
"20003"
:
exportModel
.
setProduct_line_type_name
(
"
客流
"
);
exportModel
.
setProduct_line_type_name
(
"
其他
"
);
break
;
break
;
case
"20004"
:
/*
case "20004" :
exportModel.setProduct_line_type_name("维保");
exportModel.setProduct_line_type_name("维保");
break
;
break;
*/
default
:
default
:
break
;
break
;
}
}
...
@@ -584,6 +584,9 @@ public class ContractServiceImpl implements ContractService {
...
@@ -584,6 +584,9 @@ public class ContractServiceImpl implements ContractService {
PaymentAgree
mainten_aymentAgree
=
null
;
PaymentAgree
mainten_aymentAgree
=
null
;
DeliverGoods
deliverGoods
=
null
;
DeliverGoods
deliverGoods
=
null
;
for
(
ImportModel
importModel:
successList
)
{
for
(
ImportModel
importModel:
successList
)
{
if
(
contractMapper
.
queryOne
(
importModel
.
getContract_unid
())!=
null
)
{
contractMapper
.
actualDeleteOne
(
importModel
.
getContract_unid
());
}
contractVo
=
new
ContractVo
();
contractVo
=
new
ContractVo
();
returnInfo
=
new
ReturnInfo
();
returnInfo
=
new
ReturnInfo
();
receipt
=
new
Receipt
();
receipt
=
new
Receipt
();
...
@@ -602,18 +605,18 @@ public class ContractServiceImpl implements ContractService {
...
@@ -602,18 +605,18 @@ public class ContractServiceImpl implements ContractService {
contractVo
.
setSign_date
(
importModel
.
getSign_date
());
contractVo
.
setSign_date
(
importModel
.
getSign_date
());
if
(
importModel
.
getProduct_line_type_name
()!=
null
)
{
if
(
importModel
.
getProduct_line_type_name
()!=
null
)
{
switch
(
importModel
.
getProduct_line_type_name
())
{
switch
(
importModel
.
getProduct_line_type_name
())
{
case
"
安防
"
:
case
"
智慧城市
"
:
contractVo
.
setProduct_line_type
(
"20001"
);
contractVo
.
setProduct_line_type
(
"20001"
);
break
;
break
;
case
"
交通
"
:
case
"
智慧商业
"
:
contractVo
.
setProduct_line_type
(
"20002"
);
contractVo
.
setProduct_line_type
(
"20002"
);
break
;
break
;
case
"
客流
"
:
case
"
其他
"
:
contractVo
.
setProduct_line_type
(
"20003"
);
contractVo
.
setProduct_line_type
(
"20003"
);
break
;
break
;
case
"维保"
:
/*
case "维保" :
contractVo.setProduct_line_type("20004");
contractVo.setProduct_line_type("20004");
break
;
break;
*/
default
:
default
:
break
;
break
;
}
}
...
@@ -657,15 +660,15 @@ public class ContractServiceImpl implements ContractService {
...
@@ -657,15 +660,15 @@ public class ContractServiceImpl implements ContractService {
case
"已完成"
:
case
"已完成"
:
contractVo
.
setContract_state
(
"30001"
);
contractVo
.
setContract_state
(
"30001"
);
break
;
break
;
case
"
施工
中"
:
case
"
进行
中"
:
contractVo
.
setContract_state
(
"30003"
);
contractVo
.
setContract_state
(
"30003"
);
break
;
break
;
case
"待发货"
:
/*
case "待发货":
contractVo.setContract_state("30002");
contractVo.setContract_state("30002");
break;
break;
case "项目暂停":
case "项目暂停":
contractVo.setContract_state("30004");
contractVo.setContract_state("30004");
break
;
break;
*/
default
:
default
:
break
;
break
;
}
}
...
@@ -676,15 +679,15 @@ public class ContractServiceImpl implements ContractService {
...
@@ -676,15 +679,15 @@ public class ContractServiceImpl implements ContractService {
case
"供货"
:
case
"供货"
:
contractVo
.
setContract_type
(
"40001"
);
contractVo
.
setContract_type
(
"40001"
);
break
;
break
;
case
"施工"
:
/*
case "施工":
contractVo.setContract_type("40002");
contractVo.setContract_type("40002");
break
;
break;
*/
case
"集成"
:
case
"集成"
:
contractVo
.
setContract_type
(
"40003"
);
contractVo
.
setContract_type
(
"40003"
);
break
;
break
;
case
"维保"
:
/*
case "维保":
contractVo.setContract_type("40004");
contractVo.setContract_type("40004");
break
;
break;
*/
default
:
default
:
break
;
break
;
}
}
...
@@ -731,7 +734,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -731,7 +734,7 @@ public class ContractServiceImpl implements ContractService {
}
}
contractVo
.
setStart_guarantee_date
(
importModel
.
getStart_guarantee_date
());
contractVo
.
setStart_guarantee_date
(
importModel
.
getStart_guarantee_date
());
contractVo
.
setEnd_guarantee_date
(
importModel
.
getEnd_guarantee_date
());
contractVo
.
setEnd_guarantee_date
(
importModel
.
getEnd_guarantee_date
());
if
(
importModel
.
getMainten_start_point
()!=
null
)
{
/*
if(importModel.getMainten_start_point()!=null) {
switch(importModel.getMainten_start_point()) {
switch(importModel.getMainten_start_point()) {
case "签订时间":
case "签订时间":
contractVo.setMainten_start_point("60001");
contractVo.setMainten_start_point("60001");
...
@@ -745,7 +748,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -745,7 +748,7 @@ public class ContractServiceImpl implements ContractService {
default:
default:
break;
break;
}
}
}
}
*/
contractVo
.
setContract_amount_note
(
importModel
.
getDeduct_amount_note
());
contractVo
.
setContract_amount_note
(
importModel
.
getDeduct_amount_note
());
contractVo
.
setReback_note
(
importModel
.
getStop_amount_note
());
contractVo
.
setReback_note
(
importModel
.
getStop_amount_note
());
contractVo
.
setContract_remain_note
(
importModel
.
getExemptions_amount_note
());
contractVo
.
setContract_remain_note
(
importModel
.
getExemptions_amount_note
());
...
...
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