|
@@ -236,9 +236,13 @@ public class StoreIncomeDetailsRecordServiceImpl extends ServiceImpl<StoreIncome
|
|
|
storeCashOutRecord.setApproveTime(new Date());// 审批时间
|
|
storeCashOutRecord.setApproveTime(new Date());// 审批时间
|
|
|
storeCashOutRecord.setPayDate(new Date());//支付时间
|
|
storeCashOutRecord.setPayDate(new Date());//支付时间
|
|
|
storeCashOutRecord.setPaymentDate(new Date());//支付到账时间
|
|
storeCashOutRecord.setPaymentDate(new Date());//支付到账时间
|
|
|
|
|
+ Integer commission = storeCashOutRecord.getCommission();
|
|
|
|
|
+ if(storeCashOutRecord.getCommission() == null ) {
|
|
|
|
|
+ commission = 0;
|
|
|
|
|
+ }
|
|
|
//减少账户余额
|
|
//减少账户余额
|
|
|
- storeUserMapper.updateById(new StoreUser(storeCashOutRecord.getStoreId(), storeUser.getMoney() - storeCashOutRecord.getMoney() - storeCashOutRecord.getCommission()));
|
|
|
|
|
storeCashOutRecordMapper.updateById(storeCashOutRecord);
|
|
storeCashOutRecordMapper.updateById(storeCashOutRecord);
|
|
|
|
|
+ storeUserMapper.updateById(new StoreUser(storeUserId, storeUser.getMoney() - storeCashOutRecord.getMoney() - commission));
|
|
|
return "付款成功";
|
|
return "付款成功";
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|