|
@@ -87,8 +87,13 @@ public class ExamStudentImportDataProcessingTask extends AbstractTask {
|
|
|
public void run(ScheduleJob scheduleJob) throws Exception {
|
|
|
|
|
|
ExamStudentImportEntity importEntity = examStudentImportRepo
|
|
|
- .findFirstByStatusOrderByCreationTime(
|
|
|
- ExamStudentImportStatus.FILE_PARSING_COMPLETE);
|
|
|
+ .findFirstByStatusOrderByCreationTime(ExamStudentImportStatus.DATA_PROCESSING);
|
|
|
+
|
|
|
+ if (null == importEntity) {
|
|
|
+ importEntity = examStudentImportRepo.findFirstByStatusOrderByCreationTime(
|
|
|
+ ExamStudentImportStatus.FILE_PARSING_COMPLETE);
|
|
|
+ }
|
|
|
+
|
|
|
if (null == importEntity) {
|
|
|
return;
|
|
|
}
|