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
34843699
Commit
34843699
authored
Jan 06, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端对接问题修复68
parent
74299d75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
+15
-7
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneAccountServiceImpl.java
View file @
34843699
...
@@ -291,24 +291,32 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
...
@@ -291,24 +291,32 @@ public class FortuneAccountServiceImpl extends ServiceImpl<FortuneAccountMapper,
for
(
Fortune
item
:
updateFortuneList
)
{
for
(
Fortune
item
:
updateFortuneList
)
{
ExpectedFortune
expectedFortune
=
expectedFortuneMap
.
get
(
item
.
getExpectedFortuneBizId
());
ExpectedFortune
expectedFortune
=
expectedFortuneMap
.
get
(
item
.
getExpectedFortuneBizId
());
if
(
Objects
.
nonNull
(
expectedFortune
))
{
if
(
Objects
.
nonNull
(
expectedFortune
))
{
BigDecimal
amount
=
item
.
ge
tAmount
();
// 本次出账金额
BigDecimal
currentPaymentAmount
=
item
.
getCurrentPaymen
tAmount
();
// 本次出账金额
BigDecimal
paidAmount
=
expectedFortune
.
getPaidAmount
();
// 已出账金额
BigDecimal
paidAmount
=
expectedFortune
.
getPaidAmount
();
// 已出账金额
if
(
expectedFortune
.
getAmount
().
compareTo
(
paidAmount
.
add
(
a
mount
))
==
0
)
{
if
(
expectedFortune
.
getAmount
().
compareTo
(
paidAmount
.
add
(
currentPaymentA
mount
))
==
0
)
{
// 已出账金额等于预计出账金额,更新状态为完成出账
// 已出账金额等于预计出账金额,更新状态为完成出账
expectedFortune
.
setPaidAmount
(
paidAmount
.
add
(
a
mount
));
expectedFortune
.
setPaidAmount
(
paidAmount
.
add
(
currentPaymentA
mount
));
expectedFortune
.
setUnpaidAmount
(
BigDecimal
.
ZERO
);
expectedFortune
.
setUnpaidAmount
(
BigDecimal
.
ZERO
);
expectedFortune
.
setStatus
(
FortuneStatusEnum
.
SENT
.
getItemValue
());
expectedFortune
.
setStatus
(
FortuneStatusEnum
.
SENT
.
getItemValue
());
}
else
{
}
else
{
// 已出账金额小于预计出账金额,更新已出账金额
// 已出账金额小于预计出账金额,更新已出账金额
expectedFortune
.
setPaidAmount
(
paidAmount
.
add
(
amount
));
expectedFortune
.
setPaidAmount
(
paidAmount
.
add
(
currentPaymentAmount
));
expectedFortune
.
setUnpaidAmount
(
expectedFortune
.
getAmount
().
subtract
(
paidAmount
.
add
(
amount
)));
expectedFortune
.
setUnpaidAmount
(
expectedFortune
.
getAmount
().
subtract
(
paidAmount
.
add
(
currentPaymentAmount
)));
expectedFortune
.
setStatus
(
FortuneStatusEnum
.
PARTIAL_SENT
.
getItemValue
());
expectedFortune
.
setUpdaterId
(
loginUserId
.
toString
());
expectedFortune
.
setUpdaterId
(
loginUserId
.
toString
());
expectedFortune
.
setUpdateTime
(
LocalDateTime
.
now
());
expectedFortune
.
setUpdateTime
(
LocalDateTime
.
now
());
}
}
// 更新预计出账记录
expectedFortuneService
.
lambdaUpdate
()
.
set
(
ExpectedFortune:
:
getPaidAmount
,
expectedFortune
.
getPaidAmount
())
.
set
(
ExpectedFortune:
:
getUnpaidAmount
,
expectedFortune
.
getUnpaidAmount
())
.
set
(
ExpectedFortune:
:
getStatus
,
expectedFortune
.
getStatus
())
.
set
(
ExpectedFortune:
:
getUpdaterId
,
expectedFortune
.
getUpdaterId
())
.
set
(
ExpectedFortune:
:
getUpdateTime
,
expectedFortune
.
getUpdateTime
())
.
eq
(
ExpectedFortune:
:
getId
,
expectedFortune
.
getId
())
.
update
();
}
}
}
}
// 更新预计出账记录
expectedFortuneService
.
updateBatchById
(
expectedFortuneList
);
}
}
return
true
;
return
true
;
...
...
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