mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
修复已完成订单不能删除的问题
This commit is contained in:
@@ -201,7 +201,7 @@ public class MyOrderController {
|
||||
if (!Objects.equals(order.getUserId(), userId)) {
|
||||
throw new YamiShopBindException("你没有权限获取该订单信息");
|
||||
}
|
||||
if (!Objects.equals(order.getStatus(), OrderStatus.SUCCESS.value()) || !Objects.equals(order.getStatus(), OrderStatus.CLOSE.value()) ) {
|
||||
if (!Objects.equals(order.getStatus(), OrderStatus.SUCCESS.value()) && !Objects.equals(order.getStatus(), OrderStatus.CLOSE.value()) ) {
|
||||
throw new YamiShopBindException("订单未完成或未关闭,无法删除订单");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user