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
9eb7b4b3
Commit
9eb7b4b3
authored
Apr 21, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核
parent
9b69bedc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
+6
-4
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
View file @
9eb7b4b3
...
...
@@ -330,13 +330,15 @@ public class FortuneVO implements Serializable {
FortuneVO
fortuneVO
=
new
FortuneVO
();
BeanUtils
.
copyProperties
(
fortune
,
fortuneVO
);
// 计算已出账金额和待出账金额
fortuneVO
.
setFortunePaidAmount
(
fortune
.
getCurrentPaymentHkdAmount
());
fortuneVO
.
setFortuneUnpaidAmount
(
NumberUtil
.
sub
(
fortune
.
getHkdAmount
(),
fortune
.
getCurrentPaymentHkdAmount
()));
// 计算待出账比例
BigDecimal
currentPaymentHkdAmount
=
"2"
.
equals
(
fortune
.
getStatus
())
?
fortune
.
getCurrentPaymentHkdAmount
()
:
BigDecimal
.
ZERO
;
fortuneVO
.
setFortunePaidAmount
(
currentPaymentHkdAmount
);
fortuneVO
.
setFortuneUnpaidAmount
(
NumberUtil
.
sub
(
fortune
.
getHkdAmount
(),
currentPaymentHkdAmount
));
// 计算已出账比例
BigDecimal
currentPaymentRatio
=
NumberUtil
.
div
(
fortune
.
getCurrentPaymentHkdAmount
()
,
fortune
.
getHkdAmount
(),
4
)
.
div
(
currentPaymentHkdAmount
,
fortune
.
getHkdAmount
(),
4
)
.
multiply
(
BigDecimal
.
valueOf
(
100
));
fortuneVO
.
setCurrentPaymentRatio
(
currentPaymentRatio
);
// 计算剩余出账比例
fortuneVO
.
setFortuneUnpaidRatio
(
BigDecimal
.
valueOf
(
100
).
subtract
(
currentPaymentRatio
));
fortuneVO
.
setCurrency
(
CurrencyEnum
.
toLabel
(
fortune
.
getCurrency
()));
...
...
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