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
0afe368d
Commit
0afe368d
authored
Nov 20, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加保存-发佣状态为不可发,暂存时增加批次保存
parent
70986b03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
+3
-2
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
View file @
0afe368d
...
...
@@ -131,7 +131,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
canPaymentUpDate
(
paymentStatus
,
payoutBatchId
,
loginId
,
customerFortunes
);
}
else
{
//如paymentStatus != 2(暂不可发,保留),只需统计原Fortune对应的Withdraw,重新计算
noPaymentUpDate
(
paymentStatus
,
loginId
,
customerFortunes
);
noPaymentUpDate
(
paymentStatus
,
payoutBatch
,
loginId
,
customerFortunes
);
}
responseVO
.
setCommonResult
(
commonResult
);
...
...
@@ -271,7 +271,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
return
customerWithdrawMap
;
}
private
void
noPaymentUpDate
(
String
paymentStatus
,
Long
loginId
,
List
<
AclCustomerFortune
>
customerFortunes
)
{
private
void
noPaymentUpDate
(
String
paymentStatus
,
String
payoutBatch
,
Long
loginId
,
List
<
AclCustomerFortune
>
customerFortunes
)
{
System
.
out
.
println
(
"noPaymentUpDate"
);
//需要修改的fortune记录(需修改佣金发放状态)
List
<
AclCustomerFortune
>
fortuneUpdates
=
new
ArrayList
<>();
...
...
@@ -283,6 +283,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
fortune
.
setCommissionPayoutStatus
(
paymentStatus
);
fortune
.
setCommissionPayoutBy
(
loginId
);
fortune
.
setCommissionPayoutAt
(
new
Date
());
fortune
.
setCommissionPayoutStatus
(
payoutBatch
);
Long
withdrawId
=
fortune
.
getWithdrawedId
();
fortune
.
setWithdrawedId
(
null
);
fortune
.
setFortunePayedId
(
null
);
...
...
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