|
@@ -367,6 +367,16 @@ public class TOrderServiceImpl extends ServiceImpl<TOrderMapper, TOrder> impleme
|
|
// 更新总钱数
|
|
// 更新总钱数
|
|
jsUp.setdAllMoney(jsUp.getdAllMoney().add(up));
|
|
jsUp.setdAllMoney(jsUp.getdAllMoney().add(up));
|
|
wxUserService.updateById(jsUp);
|
|
wxUserService.updateById(jsUp);
|
|
|
|
+
|
|
|
|
+ //记录分销收益
|
|
|
|
+ TConsumptionLog tConsumptionLog = new TConsumptionLog();
|
|
|
|
+ tConsumptionLog.setAmount(up);
|
|
|
|
+ tConsumptionLog.setBillNo(orderNew.getOrderNo());
|
|
|
|
+ tConsumptionLog.setOpenId(jsUp.getcOpenid());
|
|
|
|
+ tConsumptionLog.setBillType(BillTypeEnum.DISTRIBUTION.getCode());
|
|
|
|
+ tConsumptionLog.setNote("分销收益");
|
|
|
|
+ consumptionLogService.save(tConsumptionLog);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|