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
9783fe98
Commit
9783fe98
authored
Jan 23, 2026
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
见费出单逻辑-fxj
parent
54d53db0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
14 deletions
+27
-14
EkpStatusParamVo.java
...fu/cloud/plus/v1/yifu/insurances/vo/EkpStatusParamVo.java
+4
-0
TInsuranceDetailServiceImpl.java
...s/service/insurance/impl/TInsuranceDetailServiceImpl.java
+23
-14
No files found.
yifu-insurances/yifu-insurances-api/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/vo/EkpStatusParamVo.java
View file @
9783fe98
...
...
@@ -33,6 +33,10 @@ public class EkpStatusParamVo implements Serializable {
*/
private
String
callBackFlag
;
/**
* 收款结算单退单或款项撤销表示 商险ID
*/
private
String
detailIds
;
/**
* 0代表收款结算单已收或垫付
*/
...
...
yifu-insurances/yifu-insurances-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/insurances/service/insurance/impl/TInsuranceDetailServiceImpl.java
View file @
9783fe98
...
...
@@ -9746,6 +9746,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
// 自动化测需要同步更新为待投保
List
<
String
>
ids
=
new
ArrayList
<>();
TInsuranceDetail
detail
=
null
;
TInsuranceDetail
detailOld
=
null
;
String
detailId
=
null
;
for
(
EkpSettleStatusVo
vo
:
voList
){
if
(
null
!=
vo
.
getDetailId
()
&&
vo
.
getDetailId
().
length
()
>
19
){
...
...
@@ -9754,14 +9755,22 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
||
"垫付"
.
equals
(
vo
.
getPaymentStatus
()))
&&
map
.
containsKey
(
detailId
)){
detail
=
map
.
get
(
detailId
);
detail
.
setPaymentTime
(
DateUtil
.
formatDatePatten
(
new
Date
(),
DateUtil
.
DATETIME_PATTERN_SECOND
));
detail
.
setPaymentStatus
(
CommonConstants
.
ONE_STRING
);
if
(
null
!=
detail
){
detailOld
=
new
TInsuranceDetail
();
BeanCopyUtils
.
copyProperties
(
detail
,
detailOld
);
detail
.
setPaymentTime
(
DateUtil
.
formatDatePatten
(
new
Date
(),
DateUtil
.
DATETIME_PATTERN_SECOND
));
detail
.
setBuyHandleStatus
(
CommonConstants
.
ONE_INT
);
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
detail
.
setPaymentStatus
(
CommonConstants
.
ONE_STRING
);
detail
.
setUpdateBy
(
"05501879fed711eca3540242ac110010"
);
tBusinessOperateService
.
saveModificationRecord
(
detail
.
getId
(),
detailOld
,
detail
,
"收款结算单已收或垫付同步更新投保状态为待投保"
);
updateList
.
add
(
detail
);
ids
.
add
(
detailId
);
}
}
}
}
if
(
Common
.
isNotNull
(
updateList
)){
this
.
updateBatchById
(
updateList
);
}
...
...
@@ -9791,18 +9800,18 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
public
void
callBackInsuranceBuyHandleStatusSub
(
EkpStatusParamVo
vo
)
{
try
{
//根据结算单号获取明细id和结算状态
List
<
EkpInsuranceViewVo
>
viewVoList
;
TInsuranceDetail
detail
;
viewVoList
=
ekpSettleService
.
selectViewBySettleNo
(
vo
.
getSettleNo
(),
vo
.
getPayFlag
(
));
if
(
viewVoList
!=
null
&&
!
viewVoList
.
isEmpty
())
{
String
insuranceId
;
List
<
String
>
detailIds
=
null
;
if
(
null
!=
vo
&&
Common
.
isNotNull
(
vo
.
getDetailIds
())){
detailIds
=
Arrays
.
asList
(
vo
.
getDetailIds
().
split
(
CommonConstants
.
COMMA_STRING
));
}
if
(
detailIds
!=
null
&&
!
detailIds
.
isEmpty
())
{
List
<
String
>
insuranceIds
=
new
ArrayList
<>();
TInsuranceDetail
detailOld
=
null
;
for
(
EkpInsuranceViewVo
viewVo
:
viewVoList
)
{
TInsuranceDetail
detail
=
null
;
for
(
String
id
:
detailIds
)
{
//获取所有的明细id
if
(
Common
.
isNotNull
(
viewVo
.
getId
()))
{
insuranceId
=
viewVo
.
getId
().
substring
(
0
,
19
);
detail
=
baseMapper
.
selectById
(
insuranceId
);
if
(
Common
.
isNotNull
(
id
))
{
detail
=
baseMapper
.
selectById
(
id
);
detailOld
=
new
TInsuranceDetail
();
BeanCopyUtils
.
copyProperties
(
detail
,
detailOld
);
//见费出单且是待投保状态 直接回退到 待缴费 并清空缴费时间和缴费状态
...
...
@@ -9816,7 +9825,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
detail
.
setUpdateTime
(
LocalDateTime
.
now
());
baseMapper
.
updateById
(
detail
);
tBusinessOperateService
.
saveModificationRecord
(
detail
.
getId
(),
detailOld
,
detail
,
"收款结算单退单或撤销匹配同步更新投保状态为待缴费"
);
insuranceIds
.
add
(
i
nsuranceI
d
);
insuranceIds
.
add
(
id
);
}
}
}
...
...
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