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
604d0e9d
Commit
604d0e9d
authored
Mar 10, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
薪资管理-出账金额
parent
a76a8fa6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
yd-csf-service/src/main/java/com/yd/csf/service/model/FortuneAccount.java
+5
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
+1
-1
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+2
-2
yd-csf-service/src/main/resources/mappers/FortuneAccountMapper.xml
+5
-1
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/model/FortuneAccount.java
View file @
604d0e9d
...
...
@@ -49,6 +49,11 @@ public class FortuneAccount implements Serializable {
private
BigDecimal
amount
;
/**
* 港币出账金额
*/
private
BigDecimal
hkdAmount
;
/**
* 出账状态 可出账、待出账、已出账
*/
private
String
status
;
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
View file @
604d0e9d
...
...
@@ -124,7 +124,7 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
fortuneAccount
.
setBroker
(
accountExportDTO
.
getBroker
());
fortuneAccount
.
setTeam
(
accountExportDTO
.
getTeam
());
fortuneAccount
.
setCurrency
(
accountExportDTO
.
getCurrency
());
fortuneAccount
.
setAmount
(
accountExportDTO
.
getAmount
());
fortuneAccount
.
set
Hkd
Amount
(
accountExportDTO
.
getAmount
());
fortuneAccount
.
setFortuneAccountDate
(
currentDate
);
// 出账状态默认待出账
fortuneAccount
.
setStatus
(
FortuneStatusEnum
.
CHECKED
.
getItemValue
());
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
604d0e9d
...
...
@@ -402,7 +402,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
// 计算出账总额
BigDecimal
totalAmount
=
brokerFortunes
.
stream
()
.
map
(
Fortune:
:
getCurrentPaymentAmount
)
.
map
(
Fortune:
:
getCurrentPayment
Hkd
Amount
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
accountDTO
.
setAmount
(
totalAmount
);
...
...
@@ -410,7 +410,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
Map
<
String
,
BigDecimal
>
fortuneAmountMap
=
brokerFortunes
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
Fortune:
:
getFortuneName
,
Collectors
.
reducing
(
BigDecimal
.
ZERO
,
Fortune:
:
getCurrentPaymentAmount
,
BigDecimal:
:
add
)
Collectors
.
reducing
(
BigDecimal
.
ZERO
,
Fortune:
:
getCurrentPayment
Hkd
Amount
,
BigDecimal:
:
add
)
));
// 设置各个fortune项目的金额
...
...
yd-csf-service/src/main/resources/mappers/FortuneAccountMapper.xml
View file @
604d0e9d
...
...
@@ -8,6 +8,10 @@
<id
property=
"id"
column=
"id"
/>
<result
property=
"fortuneAccountBizId"
column=
"fortune_account_biz_id"
/>
<result
property=
"broker"
column=
"broker"
/>
<result
property=
"currency"
column=
"currency"
/>
<result
property=
"amount"
column=
"amount"
/>
<result
property=
"hkdAmount"
column=
"hkd_amount"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"fortuneAccountDate"
column=
"fortune_account_date"
/>
<result
property=
"content"
column=
"content"
/>
<result
property=
"remark"
column=
"remark"
/>
...
...
@@ -19,7 +23,7 @@
</resultMap>
<sql
id=
"Base_Column_List"
>
id,fortune_account_biz_id,broker,fortune_account_date,content,remark,
id,fortune_account_biz_id,broker,
currency,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