debug:不论是智能订单还是单次订单,都需要等待使用完毕才可以下单
This commit is contained in:
parent
183828d4a4
commit
a3c82d662f
|
@ -87,13 +87,12 @@ public class TransactionBillValidatorImpl extends BaseValidator implements Trans
|
||||||
return error("当前设备Mac为空,无法充值");
|
return error("当前设备Mac为空,无法充值");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 判断设备是否有正在使用中的智能订单
|
// 判断设备是否有正在使用中的订单
|
||||||
TransactionBillQuery query = new TransactionBillQuery();
|
TransactionBillQuery query = new TransactionBillQuery();
|
||||||
query.setDeviceId(device.getDeviceId());
|
query.setDeviceId(device.getDeviceId());
|
||||||
query.setSuitFeeMode(SuitFeeMode.SMART.getMode());
|
|
||||||
List<TransactionBillVO> usingBill = transactionBillService.selectUsingBill(query);
|
List<TransactionBillVO> usingBill = transactionBillService.selectUsingBill(query);
|
||||||
if (CollectionUtils.isNotEmptyElement(usingBill)) {
|
if (CollectionUtils.isNotEmptyElement(usingBill)) {
|
||||||
return error("设备有正在使用中的智能订单,暂时无法下单");
|
return error("设备有正在使用中的订单,暂时无法下单");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 店铺
|
// 店铺
|
||||||
|
|
Loading…
Reference in New Issue
Block a user