debug:日志多出一条
This commit is contained in:
parent
4c1cf4d042
commit
92be2b3e53
|
@ -973,10 +973,7 @@ public class TransactionBillServiceImpl implements TransactionBillService, After
|
||||||
// 是否成功
|
// 是否成功
|
||||||
boolean success = result != null && result;
|
boolean success = result != null && result;
|
||||||
|
|
||||||
if (success) {
|
if (!success) {
|
||||||
// 记录时长变化
|
|
||||||
this.recordTime(bill, "用户充值订单:" + bill.getBillNo());
|
|
||||||
} else {
|
|
||||||
// 修改设备充值状态为失败
|
// 修改设备充值状态为失败
|
||||||
transactionBillMapper.updateDeviceRechargeStatus(
|
transactionBillMapper.updateDeviceRechargeStatus(
|
||||||
billId,
|
billId,
|
||||||
|
@ -1001,8 +998,7 @@ public class TransactionBillServiceImpl implements TransactionBillService, After
|
||||||
|
|
||||||
LocalDateTime now = LocalDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
LocalDateTime startTime = device.getExpireTime() == null || now.isAfter(device.getExpireTime()) ? now : device.getExpireTime();
|
LocalDateTime startTime = device.getExpireTime() == null || now.isAfter(device.getExpireTime()) ? now : device.getExpireTime();
|
||||||
BigDecimal startEle = device.getExpireEle() == null || device.getExpireEle().compareTo(device.getTotalElectriQuantity()) < 0 ?
|
BigDecimal startEle = device.getTotalElectriQuantity();
|
||||||
device.getTotalElectriQuantity() : device.getExpireEle();
|
|
||||||
|
|
||||||
TransactionBill data = new TransactionBill();
|
TransactionBill data = new TransactionBill();
|
||||||
data.setBillId(bill.getBillId());
|
data.setBillId(bill.getBillId());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user