Forráskód Böngészése

up:后台批量录单修改

yangdamao 3 éve
szülő
commit
e17c9ccabd

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

@@ -563,9 +563,9 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
             if (Validator.isEmpty(goods)) {
                 throw new CustomException("商品不存在", 510);
             }
-            if (goods.getGoodsStatus() != 1) {
-                throw new CustomException(goods.getGoodsName()+"商品已下架,请重新选择商品下单", 510);
-            }
+//            if (goods.getGoodsStatus() != 1) {
+//                throw new CustomException(goods.getGoodsName()+"商品已下架,请重新选择商品下单", 510);
+//            }
             OrderGoods orderGoods = BeanUtil.toBean(g, OrderGoods.class);
             orderGoods.setOrderSn(out_trade_no);
             if (g.getGoodsInputData() != null) {