Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rl
hls-support-rlwx
Commits
1c7a39e8
Commit
1c7a39e8
authored
Dec 26, 2022
by
胡建龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]账户查询接口维护主账户信息
parent
14566827
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
PingAnServiceImpl.java
...a/com/hand/app/pingAn/service/impl/PingAnServiceImpl.java
+22
-1
No files found.
core/src/main/java/com/hand/app/pingAn/service/impl/PingAnServiceImpl.java
View file @
1c7a39e8
...
...
@@ -336,12 +336,33 @@ public class PingAnServiceImpl implements PingAnService {
JSONObject
responseData
=
new
JSONObject
();
int
pageNo
=
0
;
String
isEnd
=
"N"
;
boolean
mainFlag
=
true
;
while
(
"N"
.
equalsIgnoreCase
(
isEnd
))
{
params
.
put
(
"PageNo"
,
++
pageNo
);
JSONObject
res
=
invoke
(
iRequest
,
interfaceName
,
params
);
// 对当前查询到的数据进行存表
JSONObject
data
=
res
.
getJSONObject
(
"data"
);
if
(
Objects
.
nonNull
(
data
)){
if
(
mainFlag
){
// 处理主账户,每次查询只处理一次
HlsEbankCcbAccount
hlsEbankCcbAccount
=
new
HlsEbankCcbAccount
();
hlsEbankCcbAccount
.
setAccountNo
(
data
.
getString
(
"ShadowAcctNo"
));
Long
recordId
=
hlsEbankCcbAccountMapper
.
queryByAccountNo
(
hlsEbankCcbAccount
);
hlsEbankCcbAccount
.
setSubAccNum
(
data
.
getLong
(
"SubAccNum"
));
hlsEbankCcbAccount
.
setStt
(
data
.
getString
(
"Stt"
));
if
(
Objects
.
nonNull
(
recordId
)){
hlsEbankCcbAccount
.
setRecordId
(
recordId
);
hlsEbankCcbAccountService
.
updateByPrimaryKeySelective
(
iRequest
,
hlsEbankCcbAccount
);
}
else
{
hlsEbankCcbAccount
.
setMainFlag
(
"Y"
);
hlsEbankCcbAccount
.
setMainAccount
(
data
.
getString
(
"MainAccount"
));
hlsEbankCcbAccount
.
setCorId
(
data
.
getString
(
"CorId"
));
hlsEbankCcbAccount
.
setAccName
(
data
.
getString
(
"AccountName"
));
hlsEbankCcbAccountService
.
insertSelective
(
iRequest
,
hlsEbankCcbAccount
);
}
mainFlag
=
false
;
}
isEnd
=
data
.
getString
(
"isEnd"
);
batchSaveAccount
(
iRequest
,
data
);
}
else
{
...
...
@@ -418,12 +439,12 @@ public class PingAnServiceImpl implements PingAnService {
hlsEbankCcbAccount
.
setRecordId
(
recordId
);
hlsEbankCcbAccountService
.
updateByPrimaryKeySelective
(
iRequest
,
hlsEbankCcbAccount
);
}
else
{
hlsEbankCcbAccount
.
setMainFlag
(
"N"
);
hlsEbankCcbAccount
.
setMainAccount
(
data
.
getString
(
"MainAccount"
));
hlsEbankCcbAccount
.
setCorId
(
data
.
getString
(
"CorId"
));
hlsEbankCcbAccount
.
setAccName
(
item
.
getString
(
"SubAccName"
));
hlsEbankCcbAccountService
.
insertSelective
(
iRequest
,
hlsEbankCcbAccount
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment