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 69aa7ef5
authored
Sep 06, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[导入接口]
1 parent
d6e4b99d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 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/ContractServiceImpl.java
View file @
69aa7ef
...
...
@@ -639,6 +639,7 @@ public class ContractServiceImpl implements ContractService {
String
result
=
HttpNetClient
.
doGet
(
url
,
null
);
Map
map
=
JavaBean2Json
.
Json2JavaBean
(
result
,
Map
.
class
);
list_data
=
(
List
<
Map
>)
map
.
get
(
"list_data"
);
List
<
String
>
contractIdList
=
contractMapper
.
queryList
();
ContractVo
contractVo
=
null
;
ReturnInfo
returnInfo
=
null
;
Receipt
receipt
=
null
;
...
...
@@ -905,10 +906,11 @@ public class ContractServiceImpl implements ContractService {
projectAcceptanc_end
.
setAcceptanc_date
(
importModel
.
getEnd_acceptanc_date
());
projectAcceptanc_end
.
setAcceptanc_note
(
importModel
.
getEnd_acceptanc_note
());
}
ContractVo
contracto
=
contractMapper
.
queryOne
(
contractVo
.
getContract_unid
());
if
(
contracto
==
null
)
{
//
ContractVo contracto=contractMapper.queryOne(contractVo.getContract_unid());
if
(
!
contractIdList
.
contains
(
contractVo
.
getContract_unid
())
)
{
System
.
out
.
println
(
"contractVo="
+
JavaBean2Json
.
javaBean2Json
(
contractVo
));
contractMapper
.
addOne
(
contractVo
);
contractIdList
.
add
(
contractVo
.
getContract_unid
());
//if(paymentAgreeMapper.queryPaymentAgree(importModel.getContract_unid()).size()==0 ) {
if
(
returnInfo
.
getReback_date
()!=
null
||
returnInfo
.
getActual_reback_amount
()!=
null
||
returnInfo
.
getReback_note
()!=
null
)
{
returnInfoMapper
.
addReturnInfo
(
returnInfo
);
...
...
@@ -940,7 +942,7 @@ public class ContractServiceImpl implements ContractService {
continue
;
//}
}
else
{
if
(
importModel
.
getSalesperson_name
()!=
null
&&
contract
o
!=
null
)
{
if
(
importModel
.
getSalesperson_name
()!=
null
&&
contract
Vo
.
getContract_unid
()
!=
null
)
{
is_repeat
=
false
;
repeatListId
.
add
(
contractVo
.
getContract_unid
());
}
...
...
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