修复订单已退款,后台还能发货问题

This commit is contained in:
taozi
2021-06-14 23:41:11 +08:00
parent 162ec1c7df
commit 7ae247471b

View File

@ -749,6 +749,10 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<StoreOrderMapper, Y
throw new YshopException("订单状态错误");
}
if(!OrderInfoEnum.REFUND_STATUS_0.getValue().equals(orderQueryVo.getRefundStatus())){
throw new YshopException("订单退款中或已退款");
}
YxExpress expressQueryVo = expressService.getOne(new LambdaQueryWrapper<YxExpress>().eq(YxExpress::getName,deliveryName));
if(ObjectUtil.isNull(expressQueryVo)) {
throw new YshopException("请后台先添加快递公司");