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
ed653fe9
Commit
ed653fe9
authored
May 27, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
39d708af
87ec1095
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiPolicyFollowController.java
+3
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
+8
-1
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
+2
-3
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+2
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/controller/ApiPolicyFollowController.java
View file @
ed653fe9
...
...
@@ -529,6 +529,9 @@ public class ApiPolicyFollowController {
if
(
policyFollow
==
null
)
{
return
Result
.
fail
(
ResultCode
.
NULL_ERROR
.
getCode
(),
ResultCode
.
NULL_ERROR
.
getMessage
());
}
if
(
ObjectUtils
.
isEmpty
(
policyFollow
.
getPolicyNo
()))
{
return
Result
.
fail
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"新单跟进记录中,保单号不能为空"
);
}
if
(
ObjectUtils
.
isEmpty
(
policyFollow
.
getReconciliationCompanyCode
()))
{
return
Result
.
fail
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"新单跟进记录中,reconciliationCompanyCode不能为空"
);
}
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
View file @
ed653fe9
...
...
@@ -156,11 +156,18 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
// 查找对应的实际发佣
List
<
ApiExpectedFortunePageResponse
>
matchedList
=
actualMap
.
get
(
expected
.
getExpectedFortuneBizId
());
if
(
CollUtil
.
isNotEmpty
(
matchedList
))
{
// 设置实际出账记录的字段:持有比例、保费、关联人员
// 设置实际出账记录的字段:持有比例、保费、关联人员
、累积已发放保单记账金额、累积已发放港币金额、累积已发放比例%、剩余发放比例%、剩余保单记账金额、剩余发放折合港币金额
matchedList
.
forEach
(
actual
->
{
actual
.
setBrokerRatio
(
expected
.
getBrokerRatio
());
actual
.
setPremium
(
expected
.
getPremium
());
actual
.
setAmountSourceName
(
expected
.
getAmountSourceName
());
actual
.
setPaidRuleAmount
(
expected
.
getPaidRuleAmount
());
actual
.
setPaidAmount
(
expected
.
getPaidAmount
());
actual
.
setPaidRatio
(
expected
.
getPaidRatio
());
actual
.
setUnpaidRatio
(
expected
.
getUnpaidRatio
());
actual
.
setUnpaidRuleAmount
(
expected
.
getUnpaidRuleAmount
());
actual
.
setUnpaidRuleAmounthHkd
(
expected
.
getUnpaidRuleAmounthHkd
());
});
sortedList
.
addAll
(
matchedList
);
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
View file @
ed653fe9
...
...
@@ -507,8 +507,6 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
// 累计出账港币金额
BigDecimal
paid
=
paidMap
.
getOrDefault
(
ef
.
getExpectedFortuneBizId
(),
BigDecimal
.
ZERO
);
BigDecimal
totalAmount
=
ef
.
getHkdAmount
();
BigDecimal
unpaid
=
totalAmount
.
subtract
(
paid
);
// 累积已发放比例 = 累积:已发放保单记账金额/应发保单记账金额
BigDecimal
totalPaidRatio
=
paidRatioMap
.
getOrDefault
(
ef
.
getExpectedFortuneBizId
(),
BigDecimal
.
ZERO
);
...
...
@@ -528,8 +526,9 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
.
set
(
ExpectedFortune:
:
getUnpaidRuleAmount
,
unpaidRule
)
.
set
(
ExpectedFortune:
:
getUnpaidRuleAmountHkd
,
unpaidRuleAmountHkd
)
.
set
(
ExpectedFortune:
:
getHkdAmount
,
expectedHKD
)
.
set
(
ExpectedFortune:
:
getPayoutAmount
,
expectedHKD
)
.
set
(
ExpectedFortune:
:
getPaidAmount
,
paid
)
.
set
(
ExpectedFortune:
:
getUnpaidAmount
,
unpaid
)
.
set
(
ExpectedFortune:
:
getUnpaidAmount
,
unpaid
RuleAmountHkd
)
.
set
(
ExpectedFortune:
:
getPaidRatio
,
totalPaidRatio
)
.
set
(
ExpectedFortune:
:
getUnpaidRatio
,
unpaidRatio
)
.
set
(
ExpectedFortune:
:
getStatus
,
newStatus
)
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
ed653fe9
...
...
@@ -1129,6 +1129,8 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
.
set
(
Fortune:
:
getPayoutAmount
,
payoutAmount
)
.
set
(
Fortune:
:
getHkdToPayoutRate
,
hkdToPayoutRate
)
.
set
(
Fortune:
:
getHkdAmount
,
hkdAmount
)
.
set
(
Fortune:
:
getCurrentPaymentAmount
,
originalAmount
)
.
set
(
Fortune:
:
getCurrentPaymentHkdAmount
,
hkdAmount
)
.
eq
(
Fortune:
:
getId
,
fortune
.
getId
())
.
update
();
...
...
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