|
@ -141,7 +141,11 @@ public class ProductServiceImpl extends ServiceImpl<TbProductMapper, TbProduct> |
|
|
return Result.error("订单状态异常,请刷新"); |
|
|
return Result.error("订单状态异常,请刷新"); |
|
|
} |
|
|
} |
|
|
QueryWrapper<TbProductOrder> orderQueryWrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<TbProductOrder> orderQueryWrapper = new QueryWrapper<>(); |
|
|
orderQueryWrapper.eq("buy_user_id", hanHaiMember.getId()).eq("product_id", productReq.getProductId()).eq("audit_status", 0).eq("del_flag", 0); |
|
|
|
|
|
|
|
|
orderQueryWrapper.eq("buy_user_id", hanHaiMember.getId()). |
|
|
|
|
|
eq("product_id", productReq.getProductId()). |
|
|
|
|
|
eq("audit_status", 0). |
|
|
|
|
|
ne("order_flag", 2). |
|
|
|
|
|
eq("del_flag", 0); |
|
|
List<TbProductOrder> list = tbProductOrderService.list(orderQueryWrapper); |
|
|
List<TbProductOrder> list = tbProductOrderService.list(orderQueryWrapper); |
|
|
if (list.size() > 0) { |
|
|
if (list.size() > 0) { |
|
|
return Result.error("有订单未审核通过,不可重复下单"); |
|
|
return Result.error("有订单未审核通过,不可重复下单"); |
|
|