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
78afba48
Commit
78afba48
authored
May 22, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应付明细13
parent
269f4f0c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
4 deletions
+12
-4
yd-csf-feign/src/main/java/com/yd/csf/feign/response/expectedfortune/ApiExpectedFortunePageResponse.java
+3
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
+1
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
+2
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
+3
-1
yd-csf-service/src/main/resources/mappers/ExpectedFortuneMapper.xml
+3
-3
No files found.
yd-csf-feign/src/main/java/com/yd/csf/feign/response/expectedfortune/ApiExpectedFortunePageResponse.java
View file @
78afba48
...
...
@@ -50,6 +50,9 @@ public class ApiExpectedFortunePageResponse {
@Schema
(
description
=
"职级"
)
private
String
brokerGradeName
;
@Schema
(
description
=
"关联人员"
)
private
String
associatedPerson
;
@Schema
(
description
=
"团队名称"
)
private
String
team
;
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
View file @
78afba48
...
...
@@ -785,6 +785,7 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
BigDecimal
hkdAmount
=
fortune
.
getRuleAmount
().
multiply
(
exchangeRate
);
fortune
.
setHkdAmount
(
hkdAmount
);
fortune
.
setCurrentPaymentAmount
(
fortune
.
getRuleAmount
());
fortune
.
setCurrentPaymentHkdAmount
(
hkdAmount
);
// 重新计算发放币种金额
BigDecimal
payoutAmount
=
hkdAmount
.
multiply
(
expectedFortune
.
getHkdToPayoutRate
());
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
View file @
78afba48
...
...
@@ -365,6 +365,8 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
Set
<
String
>
policyNoList
=
records
.
stream
().
map
(
ApiExpectedFortunePageResponse:
:
getPolicyNo
).
collect
(
Collectors
.
toSet
());
Map
<
String
,
PolicyFollow
>
policyFollowMap
=
policyFollowService
.
queryPolicyFollowMap
(
policyNoList
);
// 5. 补充关联人员信息
for
(
ApiExpectedFortunePageResponse
vo
:
records
)
{
UserGradeDto
userGradeDto
=
userGradeMap
.
get
(
vo
.
getBrokerBizId
());
if
(
userGradeDto
!=
null
)
{
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
View file @
78afba48
...
...
@@ -183,6 +183,8 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
for
(
Fortune
item
:
fortuneList
)
{
Fortune
updateFortune
=
new
Fortune
();
updateFortune
.
setId
(
item
.
getId
());
updateFortune
.
setExpectedFortuneBizId
(
item
.
getExpectedFortuneBizId
());
updateFortune
.
setRuleAmount
(
item
.
getRuleAmount
());
updateFortune
.
setFortuneAccountBizId
(
fortuneAccountBizId
);
updateFortune
.
setStatus
(
FortuneStatusEnum
.
CHECKED
.
getItemValue
());
updateFortune
.
setReconciliationOperator
(
currentLoginUser
.
getRealName
());
...
...
@@ -227,7 +229,7 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
if
(
ef
!=
null
)
{
BigDecimal
currentPaymentRatio
=
BigDecimal
.
ZERO
;
if
(
BigDecimal
.
ZERO
.
compareTo
(
ef
.
getRuleAmount
())
!=
0
)
{
currentPaymentRatio
=
f
.
get
CurrentPayment
Amount
()
currentPaymentRatio
=
f
.
get
Rule
Amount
()
.
divide
(
ef
.
getRuleAmount
(),
4
,
RoundingMode
.
HALF_UP
).
multiply
(
BigDecimal
.
valueOf
(
100
));
}
f
.
setCurrentPaymentRatio
(
currentPaymentRatio
);
...
...
yd-csf-service/src/main/resources/mappers/ExpectedFortuneMapper.xml
View file @
78afba48
...
...
@@ -68,7 +68,7 @@
MAX(ef.fortune_total_period) as fortuneTotalPeriod,
ifnull(sum(ef.original_amount), 0) as amount,
ifnull(sum(ef.hkd_amount), 0) as hkdAmount,
MAX(ef.
original
_currency) as currency,
MAX(ef.
payout
_currency) as currency,
ifnull(sum(ef.paid_amount), 0) as paidAmount,
ifnull(sum(ef.unpaid_amount), 0) as unpaidAmount,
case when ifnull(sum(ef.hkd_amount), 0) > 0
...
...
@@ -81,7 +81,7 @@
end as unpaidRatio,
MAX(pf.first_broker) as broker,
MAX(pf.first_broker_biz_id) as brokerBizId,
DATE_ADD(DATE_ADD(MAX(p.effective_date), INTERVAL 2 MONTH), INTERVAL (ef.fortune_period - 1) YEAR
) as payoutDate
MAX(ef.payout_date
) as payoutDate
from expected_fortune ef
left join policy p on ef.policy_no = p.policy_no
left join policy_follow pf on ef.policy_no = pf.policy_no
...
...
@@ -113,7 +113,7 @@
ef.fortune_total_period as fortuneTotalPeriod,
ifnull(ef.original_amount, 0) as amount,
ifnull(ef.hkd_amount, 0) as hkdAmount,
ef.
original
_currency as currency,
ef.
payout
_currency as currency,
ifnull(ef.paid_amount, 0) as paidAmount,
ifnull(ef.unpaid_amount, 0) as unpaidAmount,
case when ifnull(ef.hkd_amount, 0) > 0
...
...
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