lisai17@sina.com 2020-10-11 00:30:25 +08:00
parent b342ac8daa
commit 13fcbcc212
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.cowr.service.ssjygl.prepay.prepaydetail;
import com.alibaba.fastjson.JSONObject;
import com.cowr.common.enums.Enums;
import com.cowr.common.view.Result;
import com.cowr.model.*;
@ -147,7 +148,13 @@ public class PrepayDetailSyncService extends BaseSyncService {
ret = prepayCustomer.update();
synctask.addUpdateData(prepayCustomer);
// 余额变化需要广播
synctask.addIncrementData(
prepayCustomer.getTablename(),
"id",
prepayCustomer.getId(),
new JSONObject().fluentPut("surplus", model.getAmount()) // 取消订单,在原余额上加上一个数
);
}
if (!ret) {