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
93910ad0
Commit
93910ad0
authored
Jun 10, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
688b2b53
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiSalarySplitServiceImpl.java
+2
-2
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/salarysplit/ApiSalarySplitSummaryPageDto.java
+2
-2
yd-csf-service/src/main/resources/mappers/SalarySplitMapper.xml
+4
-4
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiSalarySplitServiceImpl.java
View file @
93910ad0
...
@@ -147,7 +147,7 @@ public class ApiSalarySplitServiceImpl implements ApiSalarySplitService {
...
@@ -147,7 +147,7 @@ public class ApiSalarySplitServiceImpl implements ApiSalarySplitService {
.
filter
(
Objects:
:
nonNull
)
.
filter
(
Objects:
:
nonNull
)
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
.
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
BigDecimal
fortuneAmount
=
fortuneAccount
.
get
HkdAmount
()
!=
null
?
fortuneAccount
.
getHkd
Amount
()
:
BigDecimal
.
ZERO
;
BigDecimal
fortuneAmount
=
fortuneAccount
.
get
PayoutAmount
()
!=
null
?
fortuneAccount
.
getPayout
Amount
()
:
BigDecimal
.
ZERO
;
beSplitAmount
=
fortuneAmount
.
subtract
(
splitTotal
);
beSplitAmount
=
fortuneAmount
.
subtract
(
splitTotal
);
if
(
beSplitAmount
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
if
(
beSplitAmount
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
beSplitAmount
=
BigDecimal
.
ZERO
;
// 防止负数
beSplitAmount
=
BigDecimal
.
ZERO
;
// 防止负数
...
@@ -231,7 +231,7 @@ public class ApiSalarySplitServiceImpl implements ApiSalarySplitService {
...
@@ -231,7 +231,7 @@ public class ApiSalarySplitServiceImpl implements ApiSalarySplitService {
}
}
// 3. 计算剩余可拆金额(账户总额 - 本次拟拆分总额)
// 3. 计算剩余可拆金额(账户总额 - 本次拟拆分总额)
BigDecimal
fortuneAmount
=
fortuneAccount
.
get
HkdAmount
()
!=
null
?
fortuneAccount
.
getHkd
Amount
()
:
BigDecimal
.
ZERO
;
BigDecimal
fortuneAmount
=
fortuneAccount
.
get
PayoutAmount
()
!=
null
?
fortuneAccount
.
getPayout
Amount
()
:
BigDecimal
.
ZERO
;
BigDecimal
beSplitAmount
=
fortuneAmount
.
subtract
(
splitTotal
);
BigDecimal
beSplitAmount
=
fortuneAmount
.
subtract
(
splitTotal
);
if
(
beSplitAmount
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
if
(
beSplitAmount
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
beSplitAmount
=
BigDecimal
.
ZERO
;
// 防止负数
beSplitAmount
=
BigDecimal
.
ZERO
;
// 防止负数
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/dto/salarysplit/ApiSalarySplitSummaryPageDto.java
View file @
93910ad0
...
@@ -94,7 +94,7 @@ public class ApiSalarySplitSummaryPageDto {
...
@@ -94,7 +94,7 @@ public class ApiSalarySplitSummaryPageDto {
private
String
status
;
private
String
status
;
/**
/**
* 出账总额
* 出账总额
(发放币种金额总额)
*/
*/
private
BigDecimal
amount
;
private
BigDecimal
amount
;
...
@@ -104,7 +104,7 @@ public class ApiSalarySplitSummaryPageDto {
...
@@ -104,7 +104,7 @@ public class ApiSalarySplitSummaryPageDto {
private
BigDecimal
hkdAmount
;
private
BigDecimal
hkdAmount
;
/**
/**
* 出账币种(
原
币种)
* 出账币种(
发放
币种)
*/
*/
private
String
currency
;
private
String
currency
;
...
...
yd-csf-service/src/main/resources/mappers/SalarySplitMapper.xml
View file @
93910ad0
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
fa.fortune_account_date,
fa.fortune_account_date,
ss.bill_org,
ss.bill_org,
fa.status,
fa.status,
fa.amount,
fa.
payout_amount as
amount,
fa.hkd_amount,
fa.hkd_amount,
fa.currency,
fa.
payout_currency as
currency,
DATE_FORMAT(fa.fortune_account_date, '%Y%m') as fortune_account_month,
DATE_FORMAT(fa.fortune_account_date, '%Y%m') as fortune_account_month,
fa.business_no
fa.business_no
from salary_split ss
from salary_split ss
...
@@ -109,9 +109,9 @@
...
@@ -109,9 +109,9 @@
fa.fortune_account_date,
fa.fortune_account_date,
ss.bill_org,
ss.bill_org,
fa.status,
fa.status,
fa.amount,
fa.
payout_amount as
amount,
fa.hkd_amount,
fa.hkd_amount,
fa.currency,
fa.
payout_currency as
currency,
DATE_FORMAT(fa.fortune_account_date, '%Y%m') as fortune_account_month,
DATE_FORMAT(fa.fortune_account_date, '%Y%m') as fortune_account_month,
fa.business_no
fa.business_no
from salary_split ss
from salary_split ss
...
...
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