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
77225d3a
Commit
77225d3a
authored
Jun 09, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
2a96b3b7
72756004
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
21 deletions
+29
-21
yd-csf-service/src/main/java/com/yd/csf/service/dto/FortuneAccountExportDTO.java
+7
-4
yd-csf-service/src/main/java/com/yd/csf/service/model/FortuneAccount.java
+5
-5
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
+3
-2
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+11
-7
yd-csf-service/src/main/resources/mappers/FortuneAccountMapper.xml
+3
-3
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/dto/FortuneAccountExportDTO.java
View file @
77225d3a
...
...
@@ -25,11 +25,14 @@ public class FortuneAccountExportDTO implements Serializable {
private
String
teamBizId
;
@ExcelProperty
(
"
出账
币种"
)
private
String
c
urrency
;
@ExcelProperty
(
"
发放
币种"
)
private
String
payoutC
urrency
;
@ExcelProperty
(
"出账总额"
)
private
BigDecimal
amount
;
@ExcelProperty
(
"发放金额"
)
private
BigDecimal
payoutAmount
;
@ExcelProperty
(
"出账港币总额"
)
private
BigDecimal
hkdAmount
;
private
List
<
Fortune
>
fortuneList
;
...
...
yd-csf-service/src/main/java/com/yd/csf/service/model/FortuneAccount.java
View file @
77225d3a
...
...
@@ -54,17 +54,17 @@ public class FortuneAccount implements Serializable {
private
String
teamBizId
;
/**
*
出账
币种
*
发放
币种
*/
private
String
c
urrency
;
private
String
payoutC
urrency
;
/**
*
出账总
额
*
发放金
额
*/
private
BigDecimal
a
mount
;
private
BigDecimal
payoutA
mount
;
/**
* 港币
出账
金额
* 港币金额
*/
private
BigDecimal
hkdAmount
;
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
View file @
77225d3a
...
...
@@ -167,8 +167,9 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
fortuneAccount
.
setBrokerBizId
(
accountExportDTO
.
getBrokerBizId
());
fortuneAccount
.
setTeam
(
accountExportDTO
.
getTeam
());
fortuneAccount
.
setTeamBizId
(
accountExportDTO
.
getTeamBizId
());
fortuneAccount
.
setCurrency
(
accountExportDTO
.
getCurrency
());
fortuneAccount
.
setHkdAmount
(
accountExportDTO
.
getAmount
());
fortuneAccount
.
setPayoutCurrency
(
accountExportDTO
.
getPayoutCurrency
());
fortuneAccount
.
setPayoutAmount
(
accountExportDTO
.
getPayoutAmount
());
fortuneAccount
.
setHkdAmount
(
accountExportDTO
.
getHkdAmount
());
fortuneAccount
.
setFortuneAccountDate
(
this
.
getActualPayoutDate
(
accountExportDTO
.
getActualPayoutDate
()));
// 出账状态默认待出账
fortuneAccount
.
setStatus
(
FortuneStatusEnum
.
CHECKED
.
getItemValue
());
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
77225d3a
...
...
@@ -431,7 +431,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
for
(
Map
.
Entry
<
String
,
List
<
Fortune
>>
entry
:
fortuneMap
.
entrySet
())
{
String
broker
=
entry
.
getKey
().
split
(
"_"
)[
0
];
String
actualPayoutDate
=
entry
.
getKey
().
split
(
"_"
)[
1
];
String
c
urrency
=
entry
.
getKey
().
split
(
"_"
)[
2
];
String
payoutC
urrency
=
entry
.
getKey
().
split
(
"_"
)[
2
];
List
<
Fortune
>
brokerFortunes
=
entry
.
getValue
();
FortuneAccountExportDTO
accountDTO
=
new
FortuneAccountExportDTO
();
...
...
@@ -443,15 +443,19 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
if
(
CollUtil
.
isNotEmpty
(
brokerFortunes
))
{
accountDTO
.
setTeam
(
brokerFortunes
.
get
(
0
).
getTeam
());
accountDTO
.
setTeamBizId
(
brokerFortunes
.
get
(
0
).
getTeamBizId
());
accountDTO
.
set
Currency
(
c
urrency
);
accountDTO
.
set
PayoutCurrency
(
payoutC
urrency
);
accountDTO
.
setActualPayoutDate
(
LocalDate
.
parse
(
actualPayoutDate
));
}
// 计算出账总额
BigDecimal
totalAmount
=
brokerFortunes
.
stream
()
.
map
(
Fortune:
:
getCurrentPaymentHkdAmount
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
accountDTO
.
setAmount
(
totalAmount
);
// 计算出账港币总额、发放币种总额
BigDecimal
totalHkdAmount
=
BigDecimal
.
ZERO
;
BigDecimal
totalPayoutAmount
=
BigDecimal
.
ZERO
;
for
(
Fortune
fortune
:
brokerFortunes
)
{
totalHkdAmount
=
totalHkdAmount
.
add
(
fortune
.
getCurrentPaymentHkdAmount
());
totalPayoutAmount
=
totalPayoutAmount
.
add
(
fortune
.
getPayoutAmount
());
}
accountDTO
.
setHkdAmount
(
totalHkdAmount
);
accountDTO
.
setPayoutAmount
(
totalPayoutAmount
);
// 按fortune项目分组并累加金额
Map
<
String
,
BigDecimal
>
fortuneAmountMap
=
brokerFortunes
.
stream
()
...
...
yd-csf-service/src/main/resources/mappers/FortuneAccountMapper.xml
View file @
77225d3a
...
...
@@ -11,8 +11,8 @@
<result
property=
"brokerBizId"
column=
"broker_biz_id"
/>
<result
property=
"team"
column=
"team"
/>
<result
property=
"teamBizId"
column=
"team_biz_id"
/>
<result
property=
"
currency"
column=
"
currency"
/>
<result
property=
"
amount"
column=
"
amount"
/>
<result
property=
"
payoutCurrency"
column=
"payout_
currency"
/>
<result
property=
"
payoutAmount"
column=
"payout_
amount"
/>
<result
property=
"hkdAmount"
column=
"hkd_amount"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"fortuneAccountDate"
column=
"fortune_account_date"
/>
...
...
@@ -27,7 +27,7 @@
<sql
id=
"Base_Column_List"
>
id,fortune_account_biz_id,broker,broker_biz_id,team,team_biz_id,
currency,
amount,hkd_amount,status,fortune_account_date,content,remark,
payout_currency,payout_
amount,hkd_amount,status,fortune_account_date,content,remark,
is_deleted,creator_id,updater_id,create_time,update_time
</sql>
</mapper>
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