|
@@ -104,7 +104,11 @@ public class WashOrderServiceImpl extends MyBaseServiceImpl<WashOrderMapper, Was
|
|
|
.eq(WashOrder::getPayStatus, WashOrder.PAY_STATUS_未支付)
|
|
.eq(WashOrder::getPayStatus, WashOrder.PAY_STATUS_未支付)
|
|
|
.one();
|
|
.one();
|
|
|
if (order != null) {
|
|
if (order != null) {
|
|
|
- awoaraService.closeOrder(params.getProductKey(), params.getDeviceName(), order.getOrderId());
|
|
|
|
|
|
|
+ if (order.getUserId() == StpUtil.getLoginIdAsLong()) {
|
|
|
|
|
+ awoaraService.closeOrder(params.getProductKey(), params.getDeviceName(), order.getOrderId());
|
|
|
|
|
+ } else {
|
|
|
|
|
+ throw new BusinessException("您没有权限关闭该订单!");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|