|
@@ -189,22 +189,11 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
|
|
throw new StatusException("1004", "size 最大为200");
|
|
throw new StatusException("1004", "size 最大为200");
|
|
}
|
|
}
|
|
List<Long> ids=new ArrayList<Long>();
|
|
List<Long> ids=new ArrayList<Long>();
|
|
- for(;;) {
|
|
|
|
- List<ExamRecordDataEntity> list = examRecordDataRepo.getLimitExamRecordDataList(batchNum, startId, size);
|
|
|
|
- if(list!=null&&list.size()!=0) {
|
|
|
|
- for(ExamRecordDataEntity e:list) {
|
|
|
|
- if((e.getSyncStatus()==null||e.getSyncStatus().equals(SyncStatus.UNSYNC))&&!ExamRecordStatus.EXAM_ERROR.equals(e.getExamRecordStatus())) {
|
|
|
|
- ids.add(e.getId());
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(ids.size()==0) {
|
|
|
|
- startId=list.get(list.size()-1).getId();
|
|
|
|
- }else {
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }else {
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ List<ExamRecordDataEntity> list = examRecordDataRepo.getLimitExamRecordDataList(batchNum, startId, size);
|
|
|
|
+ if(list!=null&&list.size()!=0) {
|
|
|
|
+ for(ExamRecordDataEntity e:list) {
|
|
|
|
+ ids.add(e.getId());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return ids;
|
|
return ids;
|
|
}
|
|
}
|