|
@@ -133,7 +133,7 @@ public class AutomaticPay {
|
|
|
*/
|
|
|
public boolean payBusinessAndPartMoney(List<TbBusiness> businessList,
|
|
|
TbBusinessCar tbBusinessCar,
|
|
|
- IOrderPriceRes partMoneyRes, BigDecimal totalMoney, List<TbCarWeight> carWeights,TbAccount tbAccount ) {
|
|
|
+ IOrderPriceRes partMoneyRes, BigDecimal totalMoney, List<TbCarWeight> carWeights, TbAccount tbAccount) {
|
|
|
|
|
|
Date now = new Date();
|
|
|
String customerId = tbBusinessCar.getCustomerId();
|
|
@@ -156,7 +156,8 @@ public class AutomaticPay {
|
|
|
log.info("Balance: " + balance);
|
|
|
tbAccount.setTotalMoney(balance);
|
|
|
//更新账户余额
|
|
|
- tbAccountService.updateById(tbAccount);
|
|
|
+ boolean flag = tbAccountService.updateById(tbAccount);
|
|
|
+ log.info("update result:{},{},{},{}",finalOriginalMoney2,flag,totalMoney,balance);
|
|
|
}).start();
|
|
|
TbCostomer tbCostomer = tbCostomerService.getById(customerId);
|
|
|
String customerName = tbCostomer.getName();
|