deason 1 tahun lalu
induk
melakukan
2acf45a15b

+ 4 - 0
src/main/java/cn/com/qmth/examcloud/tool/service/batch_create_user/BatchCreateUserTask.java

@@ -72,6 +72,10 @@ public class BatchCreateUserTask implements TaskService {
             return;
         }
 
+        if (total > 1000) {
+            throw new StatusException("Excel数据条数限制1000条以内!");
+        }
+
         // 检验数据
         Map<String, Long> orgMaps = new HashMap<>();
         Map<String, Long> courseMaps = new HashMap<>();

+ 4 - 0
src/main/java/cn/com/qmth/examcloud/tool/service/batch_import_exam_student/BatchImportExamStudentTask.java

@@ -78,6 +78,10 @@ public class BatchImportExamStudentTask implements TaskService {
             return;
         }
 
+        if (total > 100000) {
+            throw new StatusException("Excel数据条数限制10万条以内!");
+        }
+
         // 检验数据
         Map<String, Long> orgMaps = new HashMap<>();
         Map<String, Long> courseMaps = new HashMap<>();