Commit e15c0aa7 by yao.xiao

測試壽險經紀人修改支付批次bug

parent c4e30e25
......@@ -220,7 +220,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
fortune.setCommissionPayoutAt(new Date());
fortune.setCommissionPayoutBy(loginId);
fortune.setPayoutBatchId(payoutBatchId);
if (!CommonUtil.isNullOrZero(withdrawId)){
if (CommonUtil.isNullOrZero(withdrawId)){
//需生成新的withdraw
newFortunes.add(fortune);
fortune.setWithdrawedId(null);
......@@ -242,6 +242,11 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
//批量更新需要修改的fortune记录
customerFortuneDalService.updateBatch(fortuneUpdates);
try {
new Thread().wait(100L);
} catch (InterruptedException e) {
e.printStackTrace();
}
//重新计算受到影响的withdraw
withdrawUpdateIds.removeAll(Collections.singleton(null));
if (!withdrawUpdateIds.isEmpty()){
......
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