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
3ab38b9c
Commit
3ab38b9c
authored
May 08, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
8f942fb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionExpectedServiceImpl.java
+12
-6
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionExpectedServiceImpl.java
View file @
3ab38b9c
...
@@ -304,17 +304,19 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
...
@@ -304,17 +304,19 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
}
else
{
}
else
{
vo
.
setRealRate
(
BigDecimal
.
ZERO
);
vo
.
setRealRate
(
BigDecimal
.
ZERO
);
vo
.
setGapRate
(
BigDecimal
.
ZERO
);
vo
.
setGapRate
(
BigDecimal
.
ZERO
);
// 当产品来佣率为零或 null 时,总入账比例无意义,设置为 0
if
(
"U"
.
equals
(
expected
.
getCommissionBizType
()))
{
vo
.
setTotalRevenueRatio
(
BigDecimal
.
ZERO
);
//应收款类型 R=关联保单应收单 totalRevenueRatio取值paidRatio
vo
.
setTotalRevenueRatio
(
paidRatio
);
}
else
{
vo
.
setTotalRevenueRatio
(
BigDecimal
.
ZERO
);
}
}
}
// 待入账金额
// 待入账金额
// 待入账金额归零 = 已入账来佣比例(实佣率)>= 产品来佣率
// 待入账金额归零 = 已入账来佣比例(实佣率)>= 产品来佣率
if
(
commissionRatio
!=
null
&&
paidRatio
.
compareTo
(
commissionRatio
)
>=
0
)
{
if
(
commissionRatio
!=
null
&&
paidRatio
.
compareTo
(
commissionRatio
)
>=
0
)
{
vo
.
setPendingAmount
(
BigDecimal
.
ZERO
);
vo
.
setPendingAmount
(
BigDecimal
.
ZERO
);
// vo.setPendingRatio(BigDecimal.ZERO);
}
else
if
(
commissionRatio
!=
null
)
{
}
else
if
(
commissionRatio
!=
null
)
{
// vo.setPendingRatio(commissionRatio.subtract(paidRatio));
if
(
expected
.
getExpectedAmount
()
!=
null
)
{
if
(
expected
.
getExpectedAmount
()
!=
null
)
{
//待入账金额 = 预计来佣金额 - 已入账来佣金额
//待入账金额 = 预计来佣金额 - 已入账来佣金额
vo
.
setPendingAmount
(
expected
.
getExpectedAmount
().
subtract
(
paidAmount
));
vo
.
setPendingAmount
(
expected
.
getExpectedAmount
().
subtract
(
paidAmount
));
...
@@ -350,7 +352,7 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
...
@@ -350,7 +352,7 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
commission
.
getReconciliationYearMonth
().
replace
(
"-"
,
""
)
:
""
);
commission
.
getReconciliationYearMonth
().
replace
(
"-"
,
""
)
:
""
);
// vo.setRealCommissionDate(commission.getCommissionDate());
// vo.setRealCommissionDate(commission.getCommissionDate());
vo
.
setRealExchangeRate
(
commission
.
getExchangeRate
());
vo
.
setRealExchangeRate
(
commission
.
getExchangeRate
());
vo
.
setRealAmount
(
commission
.
getAmount
());
vo
.
setRealAmount
(
commission
.
get
Hkd
Amount
());
vo
.
setRealCurrentCommissionRatio
(
commission
.
getCurrentCommissionRatio
());
vo
.
setRealCurrentCommissionRatio
(
commission
.
getCurrentCommissionRatio
());
vo
.
setRealUpdateTime
(
commission
.
getUpdateTime
());
vo
.
setRealUpdateTime
(
commission
.
getUpdateTime
());
vo
.
setRealUpdaterName
(
commission
.
getUpdaterName
());
vo
.
setRealUpdaterName
(
commission
.
getUpdaterName
());
...
@@ -402,7 +404,11 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
...
@@ -402,7 +404,11 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
:
gap
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
:
gap
.
multiply
(
BigDecimal
.
valueOf
(
100
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
vo
.
setGapRate
(
gapRate
);
vo
.
setGapRate
(
gapRate
);
}
else
{
}
else
{
vo
.
setRevenueRatio
(
BigDecimal
.
ZERO
);
if
(
"U"
.
equals
(
commission
.
getCommissionBizType
()))
{
vo
.
setRevenueRatio
(
new
BigDecimal
(
"100.00"
));
}
else
{
vo
.
setRevenueRatio
(
BigDecimal
.
ZERO
);
}
vo
.
setGapRate
(
BigDecimal
.
ZERO
);
vo
.
setGapRate
(
BigDecimal
.
ZERO
);
}
}
...
...
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