Commit a73f6a8f by yao.xiao

排序前非空判断

parent 5312a43f
......@@ -230,7 +230,9 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
//批量更新需要修改的fortune记录
customerFortuneDalService.updateBatch(fortuneUpdates);
//重新计算受到影响的withdraw
Collections.sort(withdrawUpdateIds);
if (!withdrawUpdateIds.isEmpty()){
Collections.sort(withdrawUpdateIds);
}
recalculateWithdraw(withdrawUpdateIds,customerIds,loginId);
//更新生成新的提现记录,及支付记录,fortune中记录对应的withdraw.id
insertWithdraw(newCustomerWithdrawMap,loginId);
......@@ -282,6 +284,9 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
//批量更新需要修改的fortune记录
customerFortuneDalService.updateBatch(fortuneUpdates);
//重新计算受到影响的withdraw
if (!withdrawUpdateIds.isEmpty()){
Collections.sort(withdrawUpdateIds);
}
recalculateWithdraw(withdrawUpdateIds,null,loginId);
}
......
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