Эх сурвалжийг харах

submit:班级限制改为300

yangdamao 2 жил өмнө
parent
commit
85a099dec3

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/domain/ClassGrade.java

@@ -21,7 +21,7 @@ import com.zhongzheng.common.annotation.Excel;
 @Accessors(chain = true)
 @TableName("class_grade")
 public class ClassGrade implements Serializable {
-    public static final Integer INIT_UPPER = 5;  //初始人数
+    public static final Integer INIT_UPPER = 300;  //初始人数
     public static final Integer INIT_UPPER2 = 1000000;  //初始人数
 
 private static final long serialVersionUID=1L;

+ 1 - 4
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/ClassGradeServiceImpl.java

@@ -775,10 +775,7 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
                 } catch (IOException e) {
                     throw new CustomException("同步请求错误"+e.getMessage());
                 }
-//                if((peopleNum+oldGradeNum)>=300){ //全系统平台二建班级人数不能超300
-//                    return false;
-//                }
-                if((peopleNum+oldGradeNum)>=5){ //测试使用
+                if((peopleNum+oldGradeNum)>=300){ //全系统平台二建班级人数不能超300
                     return false;
                 }
             }