|
@@ -525,7 +525,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
bo.setPastDue(1L);
|
|
|
List<ClassGradeVo> list = iClassGradeService.queryList(bo);
|
|
|
if(list!=null&&list.size()>0){
|
|
|
- throw new CustomException("存在已购买【班级有效期未过期】的商品,不可以重复购买商品");
|
|
|
+ throw new CustomException("存在已购买【班级有效期未过期】的商品,不可以重复购买商品",511);
|
|
|
}
|
|
|
//判断是否有锁定的班级
|
|
|
ClassGradeUserTempQueryBo gradeUserTempQueryBo = new ClassGradeUserTempQueryBo();
|
|
@@ -534,7 +534,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
gradeUserTempQueryBo.setStatus(ClassGradeUserTemp.STATUS_LOCK);
|
|
|
List<ClassGradeUserTempVo> list1 = iClassGradeUserTempService.queryList(gradeUserTempQueryBo);
|
|
|
if(list1!=null&&list1.size()>0){
|
|
|
- throw new CustomException("购买商品尚有订单未支付");
|
|
|
+ throw new CustomException("购买商品尚有订单未支付",510);
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -547,11 +547,11 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
bo.setGoodsId(goodsId);
|
|
|
Long num = iOrderGoodsService.getBuyGoodsHistory(bo);
|
|
|
if(num.longValue()>0){
|
|
|
- throw new CustomException("不可以重复购买商品");
|
|
|
+ throw new CustomException("无法重复购买商品",511);
|
|
|
}
|
|
|
Long num1 = iOrderGoodsService.getBuyGoodsReadyPay(bo);
|
|
|
if(num1.longValue()>0){
|
|
|
- throw new CustomException("购买商品尚有订单未支付");
|
|
|
+ throw new CustomException("购买商品尚有订单未支付",510);
|
|
|
}
|
|
|
return false;
|
|
|
}
|