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
9497c4e6
Commit
9497c4e6
authored
Mar 13, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-剩余出账比例
parent
110119f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
+3
-0
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
+6
-7
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
View file @
9497c4e6
...
...
@@ -163,6 +163,9 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
updateFortune
.
setId
(
item
.
getId
());
updateFortune
.
setFortuneAccountBizId
(
fortuneAccountBizId
);
updateFortune
.
setStatus
(
FortuneStatusEnum
.
CHECKED
.
getItemValue
());
// 处理金额字段
updateFortune
.
setCurrentPaymentHkdAmount
(
item
.
getHkdAmount
());
updateFortune
.
setCurrentPaymentRatio
(
BigDecimal
.
valueOf
(
100
));
updateFortuneList
.
add
(
updateFortune
);
}
}
...
...
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
View file @
9497c4e6
package
com
.
yd
.
csf
.
service
.
vo
;
import
cn.hutool.core.util.NumberUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yd.csf.service.enums.CurrencyEnum
;
import
com.yd.csf.service.model.Fortune
;
...
...
@@ -328,13 +329,11 @@ public class FortuneVO implements Serializable {
}
FortuneVO
fortuneVO
=
new
FortuneVO
();
BeanUtils
.
copyProperties
(
fortune
,
fortuneVO
);
// 待出账比例
if
(
fortuneVO
.
getCurrentPaymentRatio
()
!=
null
)
{
fortuneVO
.
setFortuneUnpaidRatio
(
BigDecimal
.
valueOf
(
100
).
subtract
(
fortuneVO
.
getCurrentPaymentRatio
()));
}
else
{
fortuneVO
.
setCurrentPaymentRatio
(
BigDecimal
.
ZERO
);
fortuneVO
.
setFortuneUnpaidRatio
(
BigDecimal
.
valueOf
(
100
));
}
// 计算待出账比例
BigDecimal
currentPaymentRatio
=
ObjectUtil
.
defaultIfNull
(
fortuneVO
.
getCurrentPaymentRatio
(),
BigDecimal
.
ZERO
);
fortuneVO
.
setCurrentPaymentRatio
(
currentPaymentRatio
);
fortuneVO
.
setFortuneUnpaidRatio
(
BigDecimal
.
valueOf
(
100
).
subtract
(
currentPaymentRatio
));
fortuneVO
.
setFortunePaidAmount
(
fortune
.
getCurrentPaymentHkdAmount
());
fortuneVO
.
setFortuneUnpaidAmount
(
NumberUtil
.
sub
(
fortune
.
getHkdAmount
(),
fortune
.
getCurrentPaymentHkdAmount
()));
...
...
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