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 9b958762
authored
6 years ago
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[修改非空]
1 parent
b0408d50
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/service/imp/DeliverGoodsServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/service/imp/ProjectAcceptancServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
9b95876
...
@@ -63,10 +63,12 @@ public class ContractServiceImpl implements ContractService {
...
@@ -63,10 +63,12 @@ public class ContractServiceImpl implements ContractService {
}
}
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
contractVo
.
getContract_unid
());
appendix
.
setBusiness_unid
(
contractVo
.
getContract_unid
());
if
(
contractVo
.
getAppendix_unids
()!=
null
)
{
for
(
int
n
:
contractVo
.
getAppendix_unids
())
{
for
(
int
n
:
contractVo
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
n
);
appendix
.
setAppendix_unid
(
n
);
appendixMapper
.
updateAppendix
(
appendix
);
appendixMapper
.
updateAppendix
(
appendix
);
}
}
}
return
successCode
;
return
successCode
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -114,10 +116,12 @@ public class ContractServiceImpl implements ContractService {
...
@@ -114,10 +116,12 @@ public class ContractServiceImpl implements ContractService {
Appendix
appendix
=
new
Appendix
();
Appendix
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_table
(
"tb_contract"
);
appendix
.
setBusiness_unid
(
vontractVo
.
getContract_unid
());
appendix
.
setBusiness_unid
(
vontractVo
.
getContract_unid
());
if
(
vontractVo
.
getAppendix_unids
()!=
null
)
{
for
(
int
n
:
vontractVo
.
getAppendix_unids
())
{
for
(
int
n
:
vontractVo
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
n
);
appendix
.
setAppendix_unid
(
n
);
appendixMapper
.
updateAppendix
(
appendix
);
appendixMapper
.
updateAppendix
(
appendix
);
}
}
}
return
successCode
;
return
successCode
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// TODO: handle exception
// TODO: handle exception
...
...
This diff is collapsed.
Click to expand it.
code/finance_serv/src/main/java/com/vion/financial/service/imp/DeliverGoodsServiceImpl.java
View file @
9b95876
...
@@ -44,6 +44,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
...
@@ -44,6 +44,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
for
(
DeliverGoods
deliverGoods:
list
)
{
for
(
DeliverGoods
deliverGoods:
list
)
{
deliverGoods
.
setContract_unid
(
s
);
deliverGoods
.
setContract_unid
(
s
);
deliverGoodsMapper
.
addDeliverGoods
(
deliverGoods
);
deliverGoodsMapper
.
addDeliverGoods
(
deliverGoods
);
if
(
deliverGoods
.
getAppendix_unids
()!=
null
)
{
for
(
int
appendixUnid:
deliverGoods
.
getAppendix_unids
())
{
for
(
int
appendixUnid:
deliverGoods
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
appendixUnid
);
appendix
.
setAppendix_unid
(
appendixUnid
);
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
...
@@ -51,6 +52,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
...
@@ -51,6 +52,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
appendixService
.
updateAppendix
(
appendix
);
appendixService
.
updateAppendix
(
appendix
);
}
}
}
}
}
return
successCode
;
return
successCode
;
}
else
{
}
else
{
failCode
.
setEcode
(
"100"
);
failCode
.
setEcode
(
"100"
);
...
@@ -75,6 +77,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
...
@@ -75,6 +77,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
logger
.
info
(
"========================查询发货信息========================"
);
logger
.
info
(
"========================查询发货信息========================"
);
if
(!
contractService
.
isDelete
(
s
))
{
if
(!
contractService
.
isDelete
(
s
))
{
List
<
DeliverGoods
>
list
=
deliverGoodsMapper
.
queryDeliverGoods
(
s
);
List
<
DeliverGoods
>
list
=
deliverGoodsMapper
.
queryDeliverGoods
(
s
);
if
(
list
!=
null
)
{
for
(
DeliverGoods
deliverGoods:
list
)
{
for
(
DeliverGoods
deliverGoods:
list
)
{
appendix
=
new
Appendix
();
appendix
=
new
Appendix
();
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
appendix
.
setBusiness_table
(
"tb_deliver_goods"
);
...
@@ -84,6 +87,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
...
@@ -84,6 +87,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
deliverGoodsVo
.
getList_deliver_data
().
add
(
deliverGoods
);
deliverGoodsVo
.
getList_deliver_data
().
add
(
deliverGoods
);
}
}
}
}
}
else
{
else
{
failCode
.
setEcode
(
"100"
);
failCode
.
setEcode
(
"100"
);
failCode
.
setEnote
(
"合同已删除"
);
failCode
.
setEnote
(
"合同已删除"
);
...
@@ -109,6 +113,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
...
@@ -109,6 +113,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
List
<
DeliverGoods
>
list_deliver_data
=
deliverGoodsVo
.
getList_deliver_data
();
List
<
DeliverGoods
>
list_deliver_data
=
deliverGoodsVo
.
getList_deliver_data
();
for
(
DeliverGoods
deliverGoods:
list_deliver_data
)
{
for
(
DeliverGoods
deliverGoods:
list_deliver_data
)
{
deliverGoodsMapper
.
updateDeliverGoods
(
deliverGoods
);
deliverGoodsMapper
.
updateDeliverGoods
(
deliverGoods
);
if
(
deliverGoods
.
getAppendix_unids
()
!=
null
)
{
for
(
int
n:
deliverGoods
.
getAppendix_unids
())
{
for
(
int
n:
deliverGoods
.
getAppendix_unids
())
{
appendix
=
new
Appendix
();
appendix
=
new
Appendix
();
appendix
.
setAppendix_unid
(
n
);
appendix
.
setAppendix_unid
(
n
);
...
@@ -117,6 +122,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
...
@@ -117,6 +122,7 @@ public class DeliverGoodsServiceImpl implements DeliverGoodsService {
appendixService
.
updateAppendix
(
appendix
);
appendixService
.
updateAppendix
(
appendix
);
}
}
}
}
}
return
successCode
;
return
successCode
;
}
else
{
}
else
{
failCode
.
setEcode
(
"100"
);
failCode
.
setEcode
(
"100"
);
...
...
This diff is collapsed.
Click to expand it.
code/finance_serv/src/main/java/com/vion/financial/service/imp/ProjectAcceptancServiceImpl.java
View file @
9b95876
...
@@ -44,6 +44,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
...
@@ -44,6 +44,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
for
(
ProjectAcceptanc
projectAcceptanc:
list
)
{
for
(
ProjectAcceptanc
projectAcceptanc:
list
)
{
projectAcceptanc
.
setContract_unid
(
s
);
projectAcceptanc
.
setContract_unid
(
s
);
projectAcceptancMapper
.
addProjectAcceptanc
(
projectAcceptanc
);
projectAcceptancMapper
.
addProjectAcceptanc
(
projectAcceptanc
);
if
(
projectAcceptanc
.
getAppendix_unids
()!=
null
)
{
for
(
int
appendixUnid:
projectAcceptanc
.
getAppendix_unids
())
{
for
(
int
appendixUnid:
projectAcceptanc
.
getAppendix_unids
())
{
appendix
.
setAppendix_unid
(
appendixUnid
);
appendix
.
setAppendix_unid
(
appendixUnid
);
appendix
.
setBusiness_table
(
"tb_project_acceptanc"
);
appendix
.
setBusiness_table
(
"tb_project_acceptanc"
);
...
@@ -51,6 +52,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
...
@@ -51,6 +52,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
appendixService
.
updateAppendix
(
appendix
);
appendixService
.
updateAppendix
(
appendix
);
}
}
}
}
}
return
successCode
;
return
successCode
;
}
else
{
}
else
{
failCode
.
setEcode
(
"100"
);
failCode
.
setEcode
(
"100"
);
...
@@ -111,6 +113,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
...
@@ -111,6 +113,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
for
(
ProjectAcceptanc
projectAcceptanc:
list
)
{
for
(
ProjectAcceptanc
projectAcceptanc:
list
)
{
projectAcceptanc
.
setContract_unid
(
s
);
projectAcceptanc
.
setContract_unid
(
s
);
projectAcceptancMapper
.
updateProjectAcceptanc
(
projectAcceptanc
);
projectAcceptancMapper
.
updateProjectAcceptanc
(
projectAcceptanc
);
if
(
projectAcceptanc
.
getAppendix_unids
()!=
null
)
{
for
(
int
n:
projectAcceptanc
.
getAppendix_unids
())
{
for
(
int
n:
projectAcceptanc
.
getAppendix_unids
())
{
appendix
=
new
Appendix
();
appendix
=
new
Appendix
();
appendix
.
setAppendix_unid
(
n
);
appendix
.
setAppendix_unid
(
n
);
...
@@ -119,6 +122,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
...
@@ -119,6 +122,7 @@ public class ProjectAcceptancServiceImpl implements ProjectAcceptancService {
appendixService
.
updateAppendix
(
appendix
);
appendixService
.
updateAppendix
(
appendix
);
}
}
}
}
}
return
successCode
;
return
successCode
;
}
else
{
}
else
{
failCode
.
setEcode
(
"100"
);
failCode
.
setEcode
(
"100"
);
...
...
This diff is collapsed.
Click to expand it.
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