浏览代码

fix 考试计划内的商品不做限制

tanzh 3 年之前
父节点
当前提交
3f0bdb9a6f

文件差异内容过多而无法显示
+ 0 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseBusinessServiceImpl.java


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

@@ -121,7 +121,7 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
                 throw new CustomException("请先设置考试地点和时间");
             }
             //考试计划内的商品是否被其他计划使用
-            List<Long> contGoods = baseMapper.countGoodsHold(bo.getApplyId());
+            /*List<Long> contGoods = baseMapper.countGoodsHold(bo.getApplyId());
             if (CollectionUtils.isNotEmpty(contGoods)){
                 String goodsName ="";
                 for (Long goodsId : contGoods) {
@@ -133,7 +133,7 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
                     }
                 }
                 throw new RuntimeException(goodsName+"已被其他进行中的考试计划使用,请修改,再启用");
-            }
+            }*/
         }
         if(bo.getStatus()==-1){
             ExamApplyQueryBo queryBo = new ExamApplyQueryBo();

部分文件因为文件数量过多而无法显示