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
8f319c81
Commit
8f319c81
authored
May 15, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-增加币种62
parent
863085e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
+10
-3
yd-csf-service/src/main/resources/mappers/ExpectedFortuneMapper.xml
+4
-4
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/ExpectedFortuneServiceImpl.java
View file @
8f319c81
...
@@ -93,7 +93,7 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
...
@@ -93,7 +93,7 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
return
expectedFortuneVOPage
;
return
expectedFortuneVOPage
;
}
}
// 调整数据顺序
// 调整数据顺序
、格式
processData
(
expectedFortuneList
);
processData
(
expectedFortuneList
);
// 1. 转介人职级信息
// 1. 转介人职级信息
...
@@ -158,8 +158,9 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
...
@@ -158,8 +158,9 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
// 查找对应的实际发佣
// 查找对应的实际发佣
List
<
ApiExpectedFortunePageResponse
>
matchedList
=
actualMap
.
get
(
expected
.
getExpectedFortuneBizId
());
List
<
ApiExpectedFortunePageResponse
>
matchedList
=
actualMap
.
get
(
expected
.
getExpectedFortuneBizId
());
if
(
CollUtil
.
isNotEmpty
(
matchedList
))
{
if
(
CollUtil
.
isNotEmpty
(
matchedList
))
{
// 设置实际
发佣的已出账比例、未出账比例 为 expected 的
已出账比例、未出账比例
// 设置实际
出账记录的字段:待出账金额(估)、
已出账比例、未出账比例
matchedList
.
forEach
(
actual
->
{
matchedList
.
forEach
(
actual
->
{
actual
.
setUnpaidAmount
(
expected
.
getHkdAmount
());
actual
.
setPaidRatio
(
expected
.
getPaidRatio
());
actual
.
setPaidRatio
(
expected
.
getPaidRatio
());
actual
.
setUnpaidRatio
(
expected
.
getUnpaidRatio
());
actual
.
setUnpaidRatio
(
expected
.
getUnpaidRatio
());
});
});
...
@@ -176,7 +177,13 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
...
@@ -176,7 +177,13 @@ public class ExpectedFortuneServiceImpl extends ServiceImpl<ExpectedFortuneMappe
}
}
}
}
// 6. 将排序后的结果写回原列表
// 6.设置实际出账记录的字段:待出账金额(估)
for
(
ApiExpectedFortunePageResponse
item
:
sortedList
)
{
if
(
item
.
getType
()
==
2
)
{
item
.
setCurrentPaymentHkdAmount
(
item
.
getHkdAmount
());
}
}
// 7. 将排序后的结果写回原列表
expectedFortuneList
.
clear
();
expectedFortuneList
.
clear
();
expectedFortuneList
.
addAll
(
sortedList
);
expectedFortuneList
.
addAll
(
sortedList
);
...
...
yd-csf-service/src/main/resources/mappers/ExpectedFortuneMapper.xml
View file @
8f319c81
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
ef.status_desc,
ef.status_desc,
ef.payout_date,
ef.payout_date,
ef.actual_payout_date,
ef.actual_payout_date,
ef.default_exchange_rate,
ef.default_exchange_rate
as exchangeRate
,
ef.original_currency,
ef.original_currency,
ef.original_amount,
ef.original_amount,
ef.original_to_hkd_rate,
ef.original_to_hkd_rate,
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
ef.hkd_to_payout_rate,
ef.hkd_to_payout_rate,
ef.hkd_amount,
ef.hkd_amount,
NULL as current_payment_hkd_amount,
NULL as current_payment_hkd_amount,
NULL
as exchange_rate,
ef.default_exchange_rate
as exchange_rate,
ef.paid_amount,
ef.paid_amount,
ef.unpaid_amount,
ef.unpaid_amount,
ef.paid_ratio,
ef.paid_ratio,
...
@@ -241,8 +241,8 @@
...
@@ -241,8 +241,8 @@
f.hkd_amount,
f.hkd_amount,
f.current_payment_amount,
f.current_payment_amount,
f.exchange_rate,
f.exchange_rate,
NULL
as paid_amount,
IF(f.status = 2, f.hkd_amount, 0)
as paid_amount,
NULL
as unpaid_amount,
IF(f.status != 2 and f.status != 5, f.hkd_amount, 0)
as unpaid_amount,
NULL as paid_ratio,
NULL as paid_ratio,
NULL as unpaid_ratio,
NULL as unpaid_ratio,
f.is_tax,
f.is_tax,
...
...
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