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
6d940b51
Commit
6d940b51
authored
Apr 23, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增出账
parent
29f92f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
17 deletions
+1
-17
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+1
-17
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
6d940b51
...
...
@@ -749,8 +749,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
fortune
.
setStatus
(
FortuneStatusEnum
.
MATCH_FAIL
.
getItemValue
());
fortune
.
setRemark
(
"未找到当前预计发佣对应的来佣"
);
}
// 更新预计出账的数据
processExpectedFortune
(
expectedFortune
,
fortune
,
expectedFortuneUpdateList
);
}
// 生成发佣业务ID
...
...
@@ -770,21 +769,6 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
return
true
;
}
private
void
processExpectedFortune
(
ExpectedFortune
expectedFortune
,
Fortune
fortune
,
List
<
ExpectedFortune
>
expectedFortuneUpdateList
)
{
// 出账币种
String
currency
=
fortune
.
getCurrency
();
// 港币出账金额
BigDecimal
hkdAmount
=
fortune
.
getHkdAmount
();
ExpectedFortune
updateObj
=
new
ExpectedFortune
();
updateObj
.
setId
(
expectedFortune
.
getId
());
updateObj
.
setHkdAmount
(
expectedFortune
.
getHkdAmount
().
add
(
hkdAmount
));
updateObj
.
setUnpaidAmount
(
hkdAmount
.
add
(
expectedFortune
.
getUnpaidAmount
()));
updateObj
.
setUnpaidRatio
(
updateObj
.
getUnpaidAmount
().
divide
(
updateObj
.
getHkdAmount
(),
4
,
RoundingMode
.
HALF_UP
));
expectedFortuneUpdateList
.
add
(
updateObj
);
}
}
...
...
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