he2802 hace 3 años
padre
commit
9c95a758ca

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/order/service/impl/OrderServiceImpl.java

@@ -227,6 +227,10 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
     @Override
     public List<OrderUserCheckBuyBo> userCheckBuyList(List<OrderUserCheckBuyBo> list) {
         for(OrderUserCheckBuyBo bo : list){
+            if(Validator.isEmpty(bo.getIdCard())||Validator.isEmpty(bo.getGradeId())||Validator.isEmpty(bo.getGoodsId())){
+                bo.setMsg("参数缺失");
+                continue;
+            }
             //订单商品
             Goods goods = iGoodsService.getOne(new LambdaQueryWrapper<Goods>().eq(Goods::getGoodsId, bo.getGoodsId()));
             if (goods.getGoodsStatus() != 1) {