|
@@ -5,14 +5,7 @@ import java.io.FileNotFoundException;
|
|
import java.io.FileOutputStream;
|
|
import java.io.FileOutputStream;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.nio.charset.Charset;
|
|
import java.nio.charset.Charset;
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.Calendar;
|
|
|
|
-import java.util.Date;
|
|
|
|
-import java.util.HashMap;
|
|
|
|
-import java.util.HashSet;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Map;
|
|
|
|
-import java.util.Set;
|
|
|
|
|
|
+import java.util.*;
|
|
import java.util.concurrent.ExecutorService;
|
|
import java.util.concurrent.ExecutorService;
|
|
import java.util.concurrent.LinkedBlockingQueue;
|
|
import java.util.concurrent.LinkedBlockingQueue;
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
@@ -383,8 +376,9 @@ public class SubjectServiceImpl extends MppServiceImpl<SubjectDao, SubjectEntity
|
|
if (CollectionUtils.isEmpty(temp)) {
|
|
if (CollectionUtils.isEmpty(temp)) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ startId = temp.stream()
|
|
|
|
+ .max(Comparator.comparingLong(ExportCetVo::getId)).map(ExportCetVo::getId).get();
|
|
list.addAll(temp);
|
|
list.addAll(temp);
|
|
- startId = temp.get(temp.size()-1).getId();
|
|
|
|
log.warn("【DBF导出】查询考生数据,当前第{}页共{}条! taskId:{}",req.getPageNumber(), list.size(), vo.getTaskId());
|
|
log.warn("【DBF导出】查询考生数据,当前第{}页共{}条! taskId:{}",req.getPageNumber(), list.size(), vo.getTaskId());
|
|
}
|
|
}
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
@@ -607,12 +601,16 @@ public class SubjectServiceImpl extends MppServiceImpl<SubjectDao, SubjectEntity
|
|
Set<String> examNumbers = new HashSet<>();
|
|
Set<String> examNumbers = new HashSet<>();
|
|
Map<String, MarkSiteEntity> cms = readCetMarking(vo.getExamId(), vo.getSubjectCode());
|
|
Map<String, MarkSiteEntity> cms = readCetMarking(vo.getExamId(), vo.getSubjectCode());
|
|
List<ExportCetVo> list = new ArrayList<>();
|
|
List<ExportCetVo> list = new ArrayList<>();
|
|
|
|
+ long startId = 0;
|
|
while (true) {
|
|
while (true) {
|
|
- req.setPageNumber(++pageNumber);
|
|
|
|
|
|
+// req.setPageNumber(++pageNumber);
|
|
|
|
+ req.setStartId(startId);
|
|
List<ExportCetVo> temp = studentService.exportCetData(req);
|
|
List<ExportCetVo> temp = studentService.exportCetData(req);
|
|
if (CollectionUtils.isEmpty(temp)) {
|
|
if (CollectionUtils.isEmpty(temp)) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ startId = temp.stream()
|
|
|
|
+ .max(Comparator.comparingLong(ExportCetVo::getId)).map(ExportCetVo::getId).get();
|
|
list.addAll(temp);
|
|
list.addAll(temp);
|
|
}
|
|
}
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
if (CollectionUtils.isEmpty(list)) {
|