| | |
| | | throw new ValidationException("处理数量不能大于商品数量"); |
| | | } |
| | | |
| | | Order o = orderMapper.selectById(oi.getOrderId()); |
| | | if(StringUtils.isNotEmpty(o.getTransferId())){ |
| | | throw new ValidationException("已质检退款,不可提交质检记录"); |
| | | } |
| | | |
| | | if(!Constants.ORDER_STATUS_BACKEND.COLLECTION.name().equals(o.getStatusBackend()) |
| | | && !Constants.ORDER_STATUS_BACKEND.SEND.name().equals(o.getStatusBackend())){ |
| | | throw new ValidationException("订单状态异常,不可提交质检记录"); |
| | | } |
| | | |
| | | List<OrderItemCheck> cLs = orderItemCheckMapper.selectList(new QueryWrapper<OrderItemCheck>() |
| | | .ne("type", dto.getType()) |
| | | .eq("order_item_id", dto.getOrderItemId()) |