Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
a7aba7fc
Commit
a7aba7fc
authored
Nov 24, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-可发放修改批次出现多笔withdraw记录
parent
ad237db7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
+3
-1
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
View file @
a7aba7fc
...
@@ -225,6 +225,8 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
...
@@ -225,6 +225,8 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
if
(
CommonUtil
.
isNullOrZero
(
withdrawId
)){
if
(
CommonUtil
.
isNullOrZero
(
withdrawId
)){
//需生成新的withdraw
//需生成新的withdraw
newFortunes
.
add
(
fortune
);
newFortunes
.
add
(
fortune
);
fortune
.
setWithdrawedId
(
null
);
fortuneUpdates
.
add
(
fortune
);
}
else
{
}
else
{
//可直接修改fortune
//可直接修改fortune
fortune
.
setWithdrawedId
(
withdrawId
);
fortune
.
setWithdrawedId
(
withdrawId
);
...
@@ -343,7 +345,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
...
@@ -343,7 +345,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
Long
withdrawId
=
withdraw
.
getId
();
Long
withdrawId
=
withdraw
.
getId
();
//需要重新计算withdraw根据的fortune记录
//需要重新计算withdraw根据的fortune记录
List
<
AclCustomerFortune
>
fortuneWithdraw
=
withdrawsFortunes
.
get
(
withdrawId
);
List
<
AclCustomerFortune
>
fortuneWithdraw
=
withdrawsFortunes
.
get
(
withdrawId
);
if
(
fortuneWithdraw
.
isEmpty
()
)
{
if
(
fortuneWithdraw
==
null
)
{
updateWithdrawAmountToZero
(
withdraws
,
pays
,
loginId
);
updateWithdrawAmountToZero
(
withdraws
,
pays
,
loginId
);
continue
;
continue
;
}
}
...
...
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