|
@@ -369,14 +369,14 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
public Map<String, Object> placePlatInputOrder(OrderAddBo bo) {
|
|
|
List<OrderGoodsAddBo> goodsList = bo.getGoodsList();
|
|
|
if (goodsList == null || goodsList.size() < 1) {
|
|
|
- throw new CustomException("商品列表为空");
|
|
|
+ throw new CustomException("商品列表为空",510);
|
|
|
}
|
|
|
if (Validator.isEmpty(bo.getInputOrderSn())) {
|
|
|
- throw new CustomException("录单单号为空");
|
|
|
+ throw new CustomException("录单单号为空",510);
|
|
|
}
|
|
|
OrderInput orderInput = iOrderInputService.queryBySn(bo.getInputOrderSn());
|
|
|
if (Validator.isEmpty(orderInput)) {
|
|
|
- throw new CustomException("录单单号不存在");
|
|
|
+ throw new CustomException("录单单号不存在",510);
|
|
|
}
|
|
|
Order add = BeanUtil.toBean(bo, Order.class);
|
|
|
validEntityBeforeSave(add);
|
|
@@ -454,7 +454,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
redisCache.unlockLua(redisLockEntity);
|
|
|
}
|
|
|
if(!isArrange){
|
|
|
- throw new CustomException("分班错误");
|
|
|
+ throw new CustomException("分班错误",510);
|
|
|
}
|
|
|
iOrderGoodsService.updateById(orderGoods);
|
|
|
}
|
|
@@ -832,7 +832,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
|
Long makeGoodsId = goods.getMakeGoodsId();
|
|
|
UserExamGoods entity = userExamGoodsService.getOne(new LambdaQueryWrapper<UserExamGoods>().eq(UserExamGoods::getUserId,userId).eq(UserExamGoods::getGoodsId,makeGoodsId).last("limit 1"));
|
|
|
if(Validator.isEmpty(entity)){
|
|
|
- throw new CustomException("请先购买此补考前培商品的绑定商品");
|
|
|
+ throw new CustomException("请先购买此补考前培商品的绑定商品",510);
|
|
|
}
|
|
|
|
|
|
}
|