|
@@ -108,14 +108,13 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
LinkedMultiValueMap<Integer, Object> finalMap = finalList.get(i);
|
|
LinkedMultiValueMap<Integer, Object> finalMap = finalList.get(i);
|
|
List<Object> examStudentImportDtoList = finalMap.get(i);
|
|
List<Object> examStudentImportDtoList = finalMap.get(i);
|
|
int min = 0;
|
|
int min = 0;
|
|
- int y = 0;
|
|
|
|
int max = SystemConstant.MAX_IMPORT_SIZE, size = examStudentImportDtoList.size();
|
|
int max = SystemConstant.MAX_IMPORT_SIZE, size = examStudentImportDtoList.size();
|
|
if (max >= size) {
|
|
if (max >= size) {
|
|
max = size;
|
|
max = size;
|
|
}
|
|
}
|
|
while (max <= size) {
|
|
while (max <= size) {
|
|
List subList = examStudentImportDtoList.subList(min, max);
|
|
List subList = examStudentImportDtoList.subList(min, max);
|
|
- for (; y < subList.size(); y++) {
|
|
|
|
|
|
+ for (int y = 0; y < subList.size(); y++) {
|
|
ExamStudentImportDto examStudentImportDto = (ExamStudentImportDto) subList.get(y);
|
|
ExamStudentImportDto examStudentImportDto = (ExamStudentImportDto) subList.get(y);
|
|
if (Objects.equals(modeEnum, ExamModeEnum.TOGETHER)) {
|
|
if (Objects.equals(modeEnum, ExamModeEnum.TOGETHER)) {
|
|
Map m = (Map) teExamActivityMap.get(examStudentImportDto.getExamActivityCode());
|
|
Map m = (Map) teExamActivityMap.get(examStudentImportDto.getExamActivityCode());
|
|
@@ -187,7 +186,6 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
}
|
|
}
|
|
txtList = this.importProgress(max, min, size, txtList, tbTaskHistory, timeFormat);
|
|
txtList = this.importProgress(max, min, size, txtList, tbTaskHistory, timeFormat);
|
|
map.put("min", min);
|
|
map.put("min", min);
|
|
- map.put("y", y);
|
|
|
|
if (max == size) {
|
|
if (max == size) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -242,14 +240,13 @@ public class TempleteLogicServiceImpl implements TempleteLogicService {
|
|
LinkedMultiValueMap<Integer, Object> finalMap = finalList.get(i);
|
|
LinkedMultiValueMap<Integer, Object> finalMap = finalList.get(i);
|
|
List<Object> examStudentDtoImportList = finalMap.get(i);
|
|
List<Object> examStudentDtoImportList = finalMap.get(i);
|
|
int min = 0;
|
|
int min = 0;
|
|
- int y = 0;
|
|
|
|
int max = SystemConstant.MAX_IMPORT_SIZE, size = examStudentDtoImportList.size();
|
|
int max = SystemConstant.MAX_IMPORT_SIZE, size = examStudentDtoImportList.size();
|
|
if (max >= size) {
|
|
if (max >= size) {
|
|
max = size;
|
|
max = size;
|
|
}
|
|
}
|
|
while (max <= size) {
|
|
while (max <= size) {
|
|
List subList = examStudentDtoImportList.subList(min, max);
|
|
List subList = examStudentDtoImportList.subList(min, max);
|
|
- for (; y < subList.size(); y++) {
|
|
|
|
|
|
+ for (int y = 0; y < subList.size(); y++) {
|
|
RoomCodeImportDto roomCodeImportDto = (RoomCodeImportDto) subList.get(y);
|
|
RoomCodeImportDto roomCodeImportDto = (RoomCodeImportDto) subList.get(y);
|
|
dataVerify(examId, roomCodeImportDto.getTeacher1(), roomCodeImportDto.getRoomCode(), roomCodeImportDto.getRoomName(), orgId, createId);
|
|
dataVerify(examId, roomCodeImportDto.getTeacher1(), roomCodeImportDto.getRoomCode(), roomCodeImportDto.getRoomName(), orgId, createId);
|
|
dataVerify(examId, roomCodeImportDto.getTeacher2(), roomCodeImportDto.getRoomCode(), roomCodeImportDto.getRoomName(), orgId, createId);
|
|
dataVerify(examId, roomCodeImportDto.getTeacher2(), roomCodeImportDto.getRoomCode(), roomCodeImportDto.getRoomName(), orgId, createId);
|