Commit e67e8d7f by yao.xiao

增加保存-发佣状态为不可发,暂存时增加批次保存

parent 0afe368d
......@@ -131,7 +131,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
canPaymentUpDate(paymentStatus,payoutBatchId,loginId,customerFortunes);
}else {
//如paymentStatus != 2(暂不可发,保留),只需统计原Fortune对应的Withdraw,重新计算
noPaymentUpDate(paymentStatus,payoutBatch,loginId,customerFortunes);
noPaymentUpDate(paymentStatus,payoutBatchId,loginId,customerFortunes);
}
responseVO.setCommonResult(commonResult);
......@@ -271,7 +271,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
return customerWithdrawMap;
}
private void noPaymentUpDate(String paymentStatus,String payoutBatch, Long loginId, List<AclCustomerFortune> customerFortunes) {
private void noPaymentUpDate(String paymentStatus,Long payoutBatchId, Long loginId, List<AclCustomerFortune> customerFortunes) {
System.out.println("noPaymentUpDate");
//需要修改的fortune记录(需修改佣金发放状态)
List<AclCustomerFortune> fortuneUpdates = new ArrayList<>();
......@@ -283,7 +283,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
fortune.setCommissionPayoutStatus(paymentStatus);
fortune.setCommissionPayoutBy(loginId);
fortune.setCommissionPayoutAt(new Date());
fortune.setCommissionPayoutStatus(payoutBatch);
fortune.setPayoutBatchId(payoutBatchId);
Long withdrawId = fortune.getWithdrawedId();
fortune.setWithdrawedId(null);
fortune.setFortunePayedId(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment