Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-csf
Commits
48970f07
Commit
48970f07
authored
Jul 10, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核页面新增
parent
2a8e305a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+5
-10
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
48970f07
...
...
@@ -787,7 +787,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
.
list
()
.
stream
()
.
collect
(
Collectors
.
toMap
(
i
->
i
.
getPolicyNo
()
+
"_"
+
i
.
getFortunePeriod
()
+
"_"
+
i
.
getFortuneType
(),
i
->
i
.
getPolicyNo
()
+
"_"
+
i
.
getFortunePeriod
()
+
"_"
+
i
.
getFortuneType
()
+
"_"
+
i
.
getBrokerBizId
()
,
Function
.
identity
(),
(
oldValue
,
newValue
)
->
newValue
)
);
...
...
@@ -797,7 +797,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
if
(
CollectionUtils
.
isNotEmpty
(
commissionList
))
{
commissionByPolicyPeriod
=
commissionList
.
stream
()
.
collect
(
Collectors
.
toMap
(
commission
->
commission
Service
.
buildPolicyPeriodKey
(
commission
.
getPolicyNo
(),
commission
.
getCommissionPeriod
()
),
commission
->
commission
.
getPolicyNo
()
+
"_"
+
commission
.
getCommissionPeriod
(
),
Function
.
identity
(),
(
oldValue
,
newValue
)
->
newValue
// 遇到重复时使用新值
));
...
...
@@ -810,7 +810,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
String
realName
=
currentLoginUser
.
getRealName
();
List
<
Fortune
>
fortuneList
=
new
ArrayList
<>();
List
<
ExpectedFortune
>
expectedFortuneUpdateList
=
new
ArrayList
<>();
for
(
FortuneAddRequest
fortuneAddRequest
:
fortuneAddRequestList
)
{
// 校验参数
valiAddFortune
(
fortuneAddRequest
);
...
...
@@ -823,13 +823,12 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
String
fortuneName
=
queryByDict
(
fortuneAddRequest
.
getFortuneType
());
fortune
.
setFortuneName
(
fortuneName
);
if
(
"R"
.
equals
(
fortuneAddRequest
.
getFortuneBizType
()))
{
Policy
policy
=
policyMap
.
get
(
fortuneAddRequest
.
getPolicyNo
());
if
(
policy
==
null
)
{
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
fortuneAddRequest
.
getPolicyNo
()
+
" 保单号不存在"
);
}
ExpectedFortune
expectedFortune
=
expectedFortuneMap
.
get
(
fortuneAddRequest
.
getPolicyNo
()
+
"_"
+
fortuneAddRequest
.
getFortunePeriod
()
+
"_"
+
fortuneAddRequest
.
getFortuneType
());
ExpectedFortune
expectedFortune
=
expectedFortuneMap
.
get
(
fortuneAddRequest
.
getPolicyNo
()
+
"_"
+
fortuneAddRequest
.
getFortunePeriod
()
+
"_"
+
fortuneAddRequest
.
getFortuneType
()
+
"_"
+
fortuneAddRequest
.
getBrokerBizId
()
);
if
(
expectedFortune
==
null
)
{
// 同步新增预计出账
expectedFortune
=
createExpectedFortune
(
fortuneAddRequest
,
policy
,
fortuneName
);
...
...
@@ -857,7 +856,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
fortune
.
setPayoutDate
(
expectedFortune
.
getPayoutDate
());
// 关联来佣业务ID
String
key
=
commissionService
.
buildPolicyPeriodKey
(
expectedFortune
.
getPolicyNo
(),
expectedFortune
.
getFortunePeriod
()
);
String
key
=
fortune
.
getPolicyNo
()
+
"_"
+
fortune
.
getFortunePeriod
(
);
Commission
matchedCommission
=
commissionByPolicyPeriod
.
get
(
key
);
if
(
matchedCommission
!=
null
)
{
fortune
.
setCommissionBizId
(
matchedCommission
.
getCommissionBizId
());
...
...
@@ -889,10 +888,6 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
}
this
.
saveBatch
(
fortuneList
);
if
(
CollectionUtils
.
isNotEmpty
(
expectedFortuneUpdateList
))
{
expectedFortuneService
.
updateBatchById
(
expectedFortuneUpdateList
);
}
return
true
;
}
...
...
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