Commit a7aba7fc by yao.xiao

修改-可发放修改批次出现多笔withdraw记录

parent ad237db7
......@@ -225,6 +225,8 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
if (CommonUtil.isNullOrZero(withdrawId)){
//需生成新的withdraw
newFortunes.add(fortune);
fortune.setWithdrawedId(null);
fortuneUpdates.add(fortune);
}else {
//可直接修改fortune
fortune.setWithdrawedId(withdrawId);
......@@ -343,7 +345,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
Long withdrawId = withdraw.getId();
//需要重新计算withdraw根据的fortune记录
List<AclCustomerFortune> fortuneWithdraw = withdrawsFortunes.get(withdrawId);
if (fortuneWithdraw.isEmpty()) {
if (fortuneWithdraw == null) {
updateWithdrawAmountToZero(withdraws, pays, loginId);
continue;
}
......
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