This commit is contained in:
gaowdong 2025-04-28 10:56:44 +08:00
parent 7a4f4062bc
commit bf96ef67b0
1 changed files with 7 additions and 1 deletions

View File

@ -299,9 +299,15 @@ public class OrderInfoServiceImpl implements IOrderInfoService
log.info("退单处理中:{}", refundKey);
throw new ServiceException("退单处理中");
}
if(orderInfo.getOrderState().equals(OrderRefundStateEnum.FINISH.getKey())) {
if(orderInfo.getOrderRefundState().equals(OrderRefundStateEnum.FINISH.getKey())) {
throw new ServiceException("订单已退");
}
if(orderInfo.getOrderState().equals(OrderStateEnum.CANCEL.getKey())) {
throw new ServiceException("订单已取消");
}
if(orderInfo.getOrderState().equals(OrderStateEnum.FINISH.getKey())) {
throw new ServiceException("订单已核销");
}
if(PayStateEnum.PAY_SUCC.getKey().equals(orderInfo.getPayState())) {
List<TradeAndWallerInfo> accTradeList = accTradeService.queryTradeAndWallerInfoByOrderNo
(String.valueOf(orderId), AccTradeTypeEnum.CONSUME);