This commit is contained in:
irving
2025-11-13 14:57:27 -05:00
parent ee0fc4d1f6
commit b51aac0cfa
3 changed files with 122 additions and 18 deletions

View File

@@ -628,6 +628,9 @@ public class OrderLifecycleServiceImpl implements IOrderLifecycleService {
if (!OrderStatus.COMPLETED.getCode().equals(order.getOrderStatus())) {
throw new CustomException("当前状态无法撤销");
}
if (!OrderConstant.OrderType.NORMAL.getCode().equals(order.getOrderType())) {
throw new CustomException("仅支持撤销普通服务订单");
}
OrderRevocationContext.EarningsAdjustStrategy strategy = context.getEarningsStrategy() != null
? context.getEarningsStrategy()