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