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