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
ecb5c2ce
Commit
ecb5c2ce
authored
Aug 05, 2022
by
查济
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zhaji' into 'develop'
Feature zhaji See merge request fangxinjiang/yifu!133
parents
831eacbe
dd3f00f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
19 deletions
+20
-19
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+14
-12
TInsuranceDetailMapper.xml
...-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
+6
-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 @
ecb5c2ce
...
...
@@ -3196,10 +3196,13 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
CommonConstants
.
ZERO_INT
!=
isOverdue
){
return
R
.
failed
(
"保单信息已过期,不能进行出险操作"
);
}
insuranceDetail
.
setIsUse
(
CommonConstants
.
ONE_INT
);
insuranceDetail
.
setUpdateBy
(
user
.
getId
());
insuranceDetail
.
setUpdateTime
(
LocalDateTime
.
now
());
return
R
.
ok
(
updateById
(
insuranceDetail
),
"出险成功"
);
LambdaUpdateWrapper
<
TInsuranceDetail
>
updateWrapper
=
new
LambdaUpdateWrapper
<
TInsuranceDetail
>();
updateWrapper
.
eq
(
TInsuranceDetail:
:
getId
,
id
)
.
set
(
TInsuranceDetail:
:
getUpdateTime
,
LocalDateTime
.
now
())
.
set
(
TInsuranceDetail:
:
getIsUse
,
CommonConstants
.
ONE_INT
)
.
set
(
TInsuranceDetail:
:
getUpdateBy
,
user
.
getId
());
update
(
updateWrapper
);
return
R
.
ok
(
"出险成功"
);
}
/**
...
...
@@ -3955,16 +3958,15 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
R
.
failed
(
"无可出险的保单"
);
}
LambdaUpdateWrapper
<
TInsuranceDetail
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
for
(
TInsuranceDetail
tInsuranceDetail
:
list
)
{
tInsuranceDetail
.
setIsUse
(
CommonConstants
.
ONE_INT
);
tInsuranceDetail
.
setUpdateTime
(
LocalDateTime
.
now
());
}
boolean
b
=
updateBatchById
(
list
);
if
(
b
){
return
R
.
ok
(
"EKP紧急出险成功"
);
}
else
{
return
R
.
ok
(
"EKP紧急出险失败"
);
updateWrapper
.
eq
(
TInsuranceDetail
::
getId
,
tInsuranceDetail
.
getId
())
.
set
(
TInsuranceDetail
::
getIsUse
,
CommonConstants
.
ONE_INT
)
.
set
(
TInsuranceDetail
::
getUpdateTime
,
LocalDateTime
.
now
());
update
(
updateWrapper
);
}
return
R
.
ok
(
"EKP紧急出险成功"
);
}
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
View file @
ecb5c2ce
...
...
@@ -65,7 +65,7 @@
BUY_HANDLE_STATUS,DEFAULT_SETTLE_ID,REDUCE_HANDLE_STATUS,
IS_USE,IS_EFFECT,IS_OVERDUE,REMARK,
CREATE_BY,CREATE_NAME,CREATE_TIME,
UPDATE_BY,UPDATE_TIME,DELETE_FLAG
UPDATE_BY,UPDATE_TIME,DELETE_FLAG
,DEFAULT_SETTLE_ID
</sql>
<select
id=
"getInsuranceListPage"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceListVO"
>
select detail.id as id,
...
...
@@ -473,7 +473,7 @@
(detail.POLICY_END
<![CDATA[ >= ]]>
concat(#{param.policyStart}, ' 00:00:00') and detail.POLICY_END
<![CDATA[ <= ]]>
concat(#{param.policyEnd}, ' 23:59:59'))
)
</if>
ORDER BY refund.CREATE_TIME DESC
ORDER BY refund.CREATE_TIME
,detail.ID
DESC
</select>
<!-- 已减员列表不分页查询-->
<select
id=
"getInsuranceRefundList"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceRefundListVo"
>
...
...
@@ -581,7 +581,7 @@
<if
test=
"param.insuranceCompanyName != null and param.insuranceCompanyName.trim() != ''"
>
and detail.INSURANCE_COMPANY_NAME = #{param.insuranceCompanyName}
</if>
ORDER BY refund.CREATE_TIME DESC
ORDER BY refund.CREATE_TIME
,detail.ID
DESC
</select>
<!-- 减员办理列表不分页查询-->
<select
id=
"getInsuranceRefundHandlingList"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.RefundExportListVo"
>
...
...
@@ -770,7 +770,6 @@
#{item}
</foreach>
</update>
<!--根据身份证查询商险信息-->
<select
id=
"getInsuranceListByIdCard"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceListByIdCardVo"
>
SELECT
...
...
@@ -785,8 +784,9 @@
</select>
<select
id=
"selectListByempIdcardNo"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceDetail"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM t_insurance_detail
<include
refid=
"Base_Column_List"
/>
FROM
t_insurance_detail
<where>
EMP_IDCARD_NO = #{empIdcardNo}
AND IS_EFFECT = 0
...
...
@@ -797,6 +797,5 @@
and (REDUCE_HANDLE_STATUS is null or REDUCE_HANDLE_STATUS = 3)
</where>
ORDER BY CREATE_TIME desc
</select>
</mapper>
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