|
@@ -210,9 +210,12 @@ public class OrderGoodsRefundServiceImpl extends ServiceImpl<OrderGoodsRefundMap
|
|
|
if(orderGoods.getPayStatus()!=3&&orderGoods.getPayStatus()!=2){
|
|
|
throw new CustomException("订单商品尚未收费");
|
|
|
}
|
|
|
- if(orderGoods.getRefundStatus()!=0){
|
|
|
+ if(orderGoods.getRefundStatus()==1){
|
|
|
throw new CustomException("订单商品目前正在退款中");
|
|
|
}
|
|
|
+ if(orderGoods.getRefundStatus()==2){
|
|
|
+ throw new CustomException("订单商品已退款");
|
|
|
+ }
|
|
|
//订单商品
|
|
|
Order order = iOrderService.getOne(new LambdaQueryWrapper<Order>().eq(Order::getOrderSn,bo.getOrderSn()));
|
|
|
if(order.getStatus()==0){
|