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
c685189d
Commit
c685189d
authored
Dec 14, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:紧急出险逻辑优化
parent
7b7ee88c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+3
-5
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
c685189d
...
...
@@ -6577,17 +6577,15 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
@Transactional
(
value
=
"insurancesTransactionManager"
,
rollbackFor
=
{
Exception
.
class
})
public
R
urgentUpdateIsUseByIds
(
List
<
String
>
paramList
)
{
List
<
TInsuranceOperate
>
operateList
=
new
ArrayList
<>();
LambdaUpdateWrapper
<
TInsuranceDetail
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
if
(
CollectionUtils
.
isNotEmpty
(
paramList
)){
paramList
.
stream
().
forEach
(
e
->{
TInsuranceDetail
byId
=
this
.
getById
(
e
);
if
(
Optional
.
ofNullable
(
byId
).
isPresent
()){
if
(
byId
.
getIsUse
()
!=
CommonConstants
.
ONE_INT
){
TInsuranceOperate
operate
=
new
TInsuranceOperate
();
updateWrapper
.
eq
(
TInsuranceDetail:
:
getId
,
byId
.
getId
())
.
set
(
TInsuranceDetail:
:
getIsUse
,
CommonConstants
.
ONE_INT
)
.
set
(
TInsuranceDetail:
:
getUpdateTime
,
LocalDateTime
.
now
());
update
(
updateWrapper
);
byId
.
setIsUse
(
CommonConstants
.
ONE_INT
);
byId
.
setUpdateTime
(
LocalDateTime
.
now
());
updateById
(
byId
);
operate
.
setOperateDesc
(
InsurancesConstants
.
URGENT_UPDATE_IS_USE
);
operate
.
setCreateName
(
InsurancesConstants
.
SYSTEM_TRIGGER
);
operate
.
setInsuranceDetailId
(
byId
.
getId
());
...
...
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