|
@@ -205,8 +205,9 @@ public class StoreOrderController extends AppBaseController {
|
|
|
List<FsStorePayment> fsStorePayments = fsStorePaymentService.selectFsStorePaymentByOrderId(order.getId());
|
|
|
if(CollectionUtils.isNotEmpty(fsStorePayments)){
|
|
|
FsStorePayment fsStorePayment = fsStorePayments.get(0);
|
|
|
- fsStorePaymentService.queryTzbk(fsStorePayment);
|
|
|
- return R.error("当前订单状态不为待支付,请刷新页面!");
|
|
|
+ if(fsStorePaymentService.queryTzbk(fsStorePayment)){
|
|
|
+ return R.error("当前订单状态不为待支付,请刷新页面!");
|
|
|
+ }
|
|
|
}
|
|
|
orderService.cancelOrder(param.getOrderId());
|
|
|
return R.ok("操作成功");
|