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
ba65d59f
Commit
ba65d59f
authored
Apr 15, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-剩余出账比例
parent
041f93d4
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 @
ba65d59f
...
...
@@ -329,14 +329,16 @@ 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
currentPaymentRatio
=
ObjectUtil
.
defaultIfNull
(
fortuneVO
.
getCurrentPaymentRatio
(),
BigDecimal
.
ZERO
);
BigDecimal
currentPaymentRatio
=
NumberUtil
.
div
(
fortune
.
getCurrentPaymentHkdAmount
(),
fortune
.
getHkdAmount
(),
4
)
.
multiply
(
BigDecimal
.
valueOf
(
100
));
fortuneVO
.
setCurrentPaymentRatio
(
currentPaymentRatio
);
fortuneVO
.
setFortuneUnpaidRatio
(
BigDecimal
.
valueOf
(
100
).
subtract
(
currentPaymentRatio
));
fortuneVO
.
setFortunePaidAmount
(
fortune
.
getCurrentPaymentHkdAmount
());
fortuneVO
.
setFortuneUnpaidAmount
(
NumberUtil
.
sub
(
fortune
.
getHkdAmount
(),
fortune
.
getCurrentPaymentHkdAmount
()));
fortuneVO
.
setCurrency
(
CurrencyEnum
.
toLabel
(
fortune
.
getCurrency
()));
fortuneVO
.
setPolicyCurrency
((
CurrencyEnum
.
toLabel
(
fortune
.
getPolicyCurrency
())));
...
...
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