Browse Source

fix 前培

he2802 3 năm trước cách đây
mục cha
commit
1b9a9653f1

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/exam/service/impl/ExamBeforeServiceImpl.java

@@ -108,9 +108,9 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
         ExamBefore update = BeanUtil.toBean(bo, ExamBefore.class);
         ExamBefore update = BeanUtil.toBean(bo, ExamBefore.class);
         if (bo.getStatus() == 1) {
         if (bo.getStatus() == 1) {
             //是否已经设置商品
             //是否已经设置商品
-            if (baseMapper.countBeforeGoods(bo.getBeforeId()) < 1) {
+/*            if (baseMapper.countBeforeGoods(bo.getBeforeId()) < 1) {
                 throw new IllegalArgumentException("请先设置适用商品");
                 throw new IllegalArgumentException("请先设置适用商品");
-            }
+            }*/
             //是否商品被启用考培
             //是否商品被启用考培
             if (baseMapper.beforeGoods(bo.getBeforeId()) > 0){
             if (baseMapper.beforeGoods(bo.getBeforeId()) > 0){
                 throw new IllegalArgumentException("该商品已启用考培,请重新创建");
                 throw new IllegalArgumentException("该商品已启用考培,请重新创建");