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
ed5f9a31
Commit
ed5f9a31
authored
Apr 30, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
1b13a050
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionExpectedServiceImpl.java
+13
-1
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionExpectedServiceImpl.java
View file @
ed5f9a31
...
...
@@ -305,13 +305,15 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
vo
.
setTotalRevenueRatio
(
BigDecimal
.
ZERO
);
}
// 待入账金额(已实现归零逻辑)
// 待入账金额
// 待入账金额归零 = 已入账来佣比例(实佣率)>= 产品来佣率
if
(
commissionRatio
!=
null
&&
paidRatio
.
compareTo
(
commissionRatio
)
>=
0
)
{
vo
.
setPendingAmount
(
BigDecimal
.
ZERO
);
// vo.setPendingRatio(BigDecimal.ZERO);
}
else
if
(
commissionRatio
!=
null
)
{
// vo.setPendingRatio(commissionRatio.subtract(paidRatio));
if
(
expected
.
getExpectedAmount
()
!=
null
)
{
//待入账金额 = 预计来佣金额 - 已入账来佣金额
vo
.
setPendingAmount
(
expected
.
getExpectedAmount
().
subtract
(
paidAmount
));
}
}
else
{
...
...
@@ -931,11 +933,17 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
// 手动聚合计算
BigDecimal
totalAmount
=
BigDecimal
.
ZERO
;
BigDecimal
totalPaidAmount
=
BigDecimal
.
ZERO
;
//累计已入账来佣比例(同保单多个入账项目累计的实佣率)
BigDecimal
totalPaidRatio
=
BigDecimal
.
ZERO
;
//累计来佣比例(同保单多个入账项目累计的产品来佣率)
BigDecimal
totalCommissionRatio
=
BigDecimal
.
ZERO
;
Set
<
String
>
policyNoSet
=
new
HashSet
<>();
for
(
CommissionExpected
expected
:
validList
)
{
totalAmount
=
totalAmount
.
add
(
ObjectUtils
.
defaultIfNull
(
expected
.
getExpectedAmount
(),
BigDecimal
.
ZERO
));
totalPaidAmount
=
totalPaidAmount
.
add
(
ObjectUtils
.
defaultIfNull
(
expected
.
getPaidAmount
(),
BigDecimal
.
ZERO
));
totalPaidRatio
=
totalPaidRatio
.
add
(
ObjectUtils
.
defaultIfNull
(
expected
.
getPaidRatio
(),
BigDecimal
.
ZERO
));
totalCommissionRatio
=
totalCommissionRatio
.
add
(
ObjectUtils
.
defaultIfNull
(
expected
.
getCommissionRatio
(),
BigDecimal
.
ZERO
));
if
(
StringUtils
.
isNotBlank
(
expected
.
getPolicyNo
()))
{
policyNoSet
.
add
(
expected
.
getPolicyNo
());
}
...
...
@@ -973,6 +981,10 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
vo
.
setPaidAmountRatio
(
BigDecimal
.
ZERO
);
}
// 待入账金额归零 = 已入账来佣比例(累计实佣率)>= 累计产品来佣率
if
(
totalPaidRatio
.
compareTo
(
totalCommissionRatio
)
>=
0
){
vo
.
setPendingPaidAmount
(
BigDecimal
.
ZERO
);
}
vo
.
setTotalPolicyCount
(
policyNoSet
.
size
());
vo
.
setTotalPremium
(
totalPremium
);
vo
.
setFromTotalPremium
(
fromTotalPremium
);
...
...
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