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
d481515e
Commit
d481515e
authored
Dec 09, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-licancan' into 'feature/insurance-1.1.0'
Feature licancan See merge request
!281
parents
98412675
dc24d3c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
2 deletions
+61
-2
TInsuranceDetailController.java
...ifu/insurances/controller/TInsuranceDetailController.java
+13
-0
TInsuranceDetailService.java
...insurances/service/insurance/TInsuranceDetailService.java
+9
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+39
-2
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/controller/TInsuranceDetailController.java
View file @
d481515e
...
@@ -587,6 +587,19 @@ public class TInsuranceDetailController {
...
@@ -587,6 +587,19 @@ public class TInsuranceDetailController {
return
tInsuranceDetailService
.
urgentUpdateIsUse
(
empIdcardNo
);
return
tInsuranceDetailService
.
urgentUpdateIsUse
(
empIdcardNo
);
}
}
/**
* 紧急出险(20221128需求,ekp调用)
*
* @author licancan
* @param paramList 商险明细id集合
* @return {@link R}
*/
@Operation
(
summary
=
"紧急出险"
,
description
=
"紧急出险"
)
@PostMapping
(
"/urgentUpdateIsUseByIds"
)
public
R
urgentUpdateIsUseByIds
(
@RequestBody
@Valid
@Size
(
min
=
1
,
message
=
"主键集合不能为空"
)
List
<
String
>
paramList
)
{
return
tInsuranceDetailService
.
urgentUpdateIsUseByIds
(
paramList
);
}
/**
/**
* 根据身份证查询所有的商险列表
* 根据身份证查询所有的商险列表
*
*
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/TInsuranceDetailService.java
View file @
d481515e
...
@@ -377,6 +377,15 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
...
@@ -377,6 +377,15 @@ public interface TInsuranceDetailService extends IService<TInsuranceDetail> {
*/
*/
R
urgentUpdateIsUse
(
String
empIdcardNo
);
R
urgentUpdateIsUse
(
String
empIdcardNo
);
/**
* 紧急出险
*
* @author licancan
* @param paramList 商险明细id集合
* @return {@link R}
*/
R
urgentUpdateIsUseByIds
(
List
<
String
>
paramList
);
/**
/**
* 根据身份证查询商险列表
* 根据身份证查询商险列表
*
*
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
d481515e
...
@@ -2123,10 +2123,10 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -2123,10 +2123,10 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
}
//操作记录
//操作记录
/
*
addOperate(detailList,user,InsurancesConstants.UPDATE_INSURED,null,CommonConstants.ONE_INT);
/
/
addOperate(detailList,user,InsurancesConstants.UPDATE_INSURED,null,CommonConstants.ONE_INT);
if
(
operateList
.
stream
().
allMatch
(
e
->
e
.
getErrorMessage
().
equals
(
CommonConstants
.
RESULT_DATA_SUCESS
)))
{
if
(
operateList
.
stream
().
allMatch
(
e
->
e
.
getErrorMessage
().
equals
(
CommonConstants
.
RESULT_DATA_SUCESS
)))
{
operateList
=
null
;
operateList
=
null
;
}
*/
}
return
R
.
ok
(
operateList
,
InsurancesConstants
.
OPERATE_SUCCESS
);
return
R
.
ok
(
operateList
,
InsurancesConstants
.
OPERATE_SUCCESS
);
}
}
...
@@ -6355,6 +6355,43 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -6355,6 +6355,43 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
}
/**
* 紧急出险
*
* @param paramList 商险明细id集合
* @return {@link R}
* @author licancan
*/
@Override
@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
);
operate
.
setOperateDesc
(
InsurancesConstants
.
URGENT_UPDATE_IS_USE
);
operate
.
setCreateName
(
InsurancesConstants
.
SYSTEM_TRIGGER
);
operate
.
setInsuranceDetailId
(
byId
.
getId
());
operate
.
setDisplayFlag
(
CommonConstants
.
ONE_INT
);
operate
.
setCreateTime
(
LocalDateTime
.
now
());
operate
.
setCreateBy
(
CommonConstants
.
ZERO_STRING
);
operateList
.
add
(
operate
);
}
}
});
}
tInsuranceOperateService
.
saveBatch
(
operateList
);
return
R
.
ok
(
"EKP紧急出险成功"
);
}
/**
/**
* 根据身份证查询商险列表
* 根据身份证查询商险列表
*
*
...
...
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