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
84dba00e
Commit
84dba00e
authored
Aug 25, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
525cdf9d
0d824e89
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
TInsuranceDetailMapper.java
...lus/v1/yifu/insurances/mapper/TInsuranceDetailMapper.java
+9
-0
TInsuranceDetailServiceImpl.java
.../insurances/service/impl/TInsuranceDetailServiceImpl.java
+14
-1
TInsuranceDetailMapper.xml
...-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
+6
-0
TInsuranceEnclosureMapper.xml
...z/src/main/resources/mapper/TInsuranceEnclosureMapper.xml
+1
-0
No files found.
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/mapper/TInsuranceDetailMapper.java
View file @
84dba00e
...
@@ -75,6 +75,15 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
...
@@ -75,6 +75,15 @@ public interface TInsuranceDetailMapper extends BaseMapper<TInsuranceDetail> {
*/
*/
List
<
InsuranceExportListVO
>
getInsuranceExportList
(
@Param
(
"param"
)
InsuranceExportListParam
param
);
List
<
InsuranceExportListVO
>
getInsuranceExportList
(
@Param
(
"param"
)
InsuranceExportListParam
param
);
/**
* 批量更新保单号
*
* @author licancan
* @param details
* @return void
*/
void
updatePolicyNoBatch
(
@Param
(
"details"
)
List
<
TInsuranceDetail
>
details
);
/***********************减员办理********************************/
/***********************减员办理********************************/
/**
/**
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/impl/TInsuranceDetailServiceImpl.java
View file @
84dba00e
...
@@ -800,7 +800,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -800,7 +800,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
List
<
TInsuranceOperate
>
list
=
tInsuranceOperateService
.
list
(
Wrappers
.<
TInsuranceOperate
>
query
().
lambda
()
List
<
TInsuranceOperate
>
list
=
tInsuranceOperateService
.
list
(
Wrappers
.<
TInsuranceOperate
>
query
().
lambda
()
.
eq
(
TInsuranceOperate:
:
getInsuranceDetailId
,
id
)
.
eq
(
TInsuranceOperate:
:
getInsuranceDetailId
,
id
)
.
eq
(
TInsuranceOperate:
:
getDisplayFlag
,
CommonConstants
.
ONE_INT
)
.
eq
(
TInsuranceOperate:
:
getDisplayFlag
,
CommonConstants
.
ONE_INT
)
.
orderBy
De
sc
(
TInsuranceOperate:
:
getCreateTime
)
.
orderBy
A
sc
(
TInsuranceOperate:
:
getCreateTime
)
);
);
return
list
;
return
list
;
}
}
...
@@ -1306,6 +1306,19 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
...
@@ -1306,6 +1306,19 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
if
(
StringUtils
.
isNotBlank
(
success
.
getPolicyNo
())){
if
(
StringUtils
.
isNotBlank
(
success
.
getPolicyNo
())){
detail
.
setPolicyNo
(
success
.
getPolicyNo
());
detail
.
setPolicyNo
(
success
.
getPolicyNo
());
//如果保单号不为空,将替换类型的保单号也全部更新
List
<
TInsuranceReplace
>
list
=
tInsuranceReplaceService
.
list
(
Wrappers
.<
TInsuranceReplace
>
query
().
lambda
()
.
eq
(
TInsuranceReplace:
:
getOriginInsuranceDetailId
,
detail
.
getId
()));
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
List
<
String
>
collect
=
list
.
stream
().
map
(
TInsuranceReplace:
:
getToInsuranceDetailId
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
TInsuranceDetail
>
details
=
this
.
baseMapper
.
selectBatchIds
(
collect
);
if
(
CollectionUtils
.
isNotEmpty
(
details
)){
details
.
stream
().
forEach
(
e
->
e
.
setPolicyNo
(
success
.
getPolicyNo
()));
//这里自己写sql更新保单号,防止用mybatisPlus批量更新,把updateTime更新了(updateTime不能更新)
baseMapper
.
updatePolicyNoBatch
(
details
);
}
}
}
}
if
(
StringUtils
.
isNotBlank
(
success
.
getActualPremium
())){
if
(
StringUtils
.
isNotBlank
(
success
.
getActualPremium
())){
//判断推送金额是否一致,不一致才推送ekp
//判断推送金额是否一致,不一致才推送ekp
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceDetailMapper.xml
View file @
84dba00e
...
@@ -386,6 +386,12 @@
...
@@ -386,6 +386,12 @@
ORDER BY detail.CREATE_TIME DESC
ORDER BY detail.CREATE_TIME DESC
</select>
</select>
<update
id=
"updatePolicyNoBatch"
>
<foreach
collection=
"details"
index=
"index"
item=
"item"
separator=
";"
>
update t_insurance_detail set POLICY_NO = #{item.policyNo} where ID = #{item.id}
</foreach>
</update>
<!-- ***********************减员办理******************************** -->
<!-- ***********************减员办理******************************** -->
<!-- 已投保列表分页查询-->
<!-- 已投保列表分页查询-->
<select
id=
"getInsuredListPage"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuredListVo"
>
<select
id=
"getInsuredListPage"
resultType=
"com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuredListVo"
>
...
...
yifu-insurances/yifu-insurances-biz/src/main/resources/mapper/TInsuranceEnclosureMapper.xml
View file @
84dba00e
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
<if
test=
"param.endTime != null and param.endTime.trim() != '' "
>
<if
test=
"param.endTime != null and param.endTime.trim() != '' "
>
AND e.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endTime}, ' 23:59:59')
AND e.CREATE_TIME
<![CDATA[ <= ]]>
concat(#{param.endTime}, ' 23:59:59')
</if>
</if>
order by e.CREATE_TIME desc
</select>
</select>
...
...
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