Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
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
fangxinjiang
yifu-mvp
Commits
7b1b5585
Commit
7b1b5585
authored
Aug 03, 2022
by
zhaji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature-zhaji
parents
1319b249
3c7c8470
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+11
-7
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
7b1b5585
...
...
@@ -138,15 +138,19 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
List
<
UpdateInsuranceSettleParam
.
SettleData
>
settleData
=
param
.
getSettleData
();
List
<
TInsuranceSettle
>
list
=
new
ArrayList
<>();
for
(
UpdateInsuranceSettleParam
.
SettleData
settleDatum
:
settleData
)
{
TInsuranceSettle
settle
=
new
TInsuranceSettle
();
String
settleId
=
settleDatum
.
getSn
().
split
(
"_"
)[
1
];
settle
.
setId
(
settleId
);
settle
.
setUpdateTime
(
pushTime
);
settle
.
setSettleHandleStatus
(
settleDatum
.
getSettleStatus
());
if
(
StringUtils
.
isNotBlank
(
settleId
)){
TInsuranceSettle
byId
=
tInsuranceSettleService
.
getById
(
settleId
);
if
(!
Optional
.
ofNullable
(
byId
).
isPresent
()){
continue
;
}
byId
.
setUpdateTime
(
pushTime
);
byId
.
setSettleHandleStatus
(
settleDatum
.
getSettleStatus
());
if
(
CommonConstants
.
THREE_STRING
.
equals
(
settleDatum
.
getSettleStatus
())){
settle
.
setSettleDoneTime
(
pushTime
);
byId
.
setSettleDoneTime
(
pushTime
);
}
list
.
add
(
byId
);
}
list
.
add
(
settle
);
}
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
tInsuranceSettleService
.
saveOrUpdateBatch
(
list
);
...
...
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