|
@@ -61,7 +61,7 @@ public class DataGainExamExecutor implements NodeExecuter<Long, ExamRecordData,
|
|
RecordDataSyncRule syncRule = new RecordDataSyncRule(recordDataSyncAllowOrgList, recordDataSyncLimitOrgList);
|
|
RecordDataSyncRule syncRule = new RecordDataSyncRule(recordDataSyncAllowOrgList, recordDataSyncLimitOrgList);
|
|
LOG.warn(syncRule.toString());
|
|
LOG.warn(syncRule.toString());
|
|
|
|
|
|
- LOG.info("[DataGainExamExecutor]开始获取数据");
|
|
|
|
|
|
+ LOG.info("开始获取数据");
|
|
Date start = new Date();
|
|
Date start = new Date();
|
|
// 获取考试信息id
|
|
// 获取考试信息id
|
|
Long startId = 0l;
|
|
Long startId = 0l;
|
|
@@ -78,7 +78,7 @@ public class DataGainExamExecutor implements NodeExecuter<Long, ExamRecordData,
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
Date end = new Date();
|
|
Date end = new Date();
|
|
long times = end.getTime() - start.getTime();
|
|
long times = end.getTime() - start.getTime();
|
|
- LOG.error("[DataGainExamExecutor]获取数据库中考试信息出错 startId:" + startId + " 获取数据条数:" + outList.size() + " 耗时:" + times + "ms", e);
|
|
|
|
|
|
+ LOG.error("获取数据库中考试信息出错 startId:" + startId + " 获取数据条数:" + outList.size() + " 耗时:" + times + "ms", e);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -86,7 +86,7 @@ public class DataGainExamExecutor implements NodeExecuter<Long, ExamRecordData,
|
|
if (ids == null || ids.size() == 0) {
|
|
if (ids == null || ids.size() == 0) {
|
|
Date end = new Date();
|
|
Date end = new Date();
|
|
long times = end.getTime() - start.getTime();
|
|
long times = end.getTime() - start.getTime();
|
|
- LOG.info("[DataGainExamExecutor]获取数据条数:" + outList.size() + " 耗时:" + times + "ms");
|
|
|
|
|
|
+ LOG.info("获取数据条数:" + outList.size() + " 耗时:" + times + "ms");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -98,7 +98,7 @@ public class DataGainExamExecutor implements NodeExecuter<Long, ExamRecordData,
|
|
ExamRecordData examRecordData = examRecordDataService.getExamRecordDataCache(id);
|
|
ExamRecordData examRecordData = examRecordDataService.getExamRecordDataCache(id);
|
|
|
|
|
|
if (examRecordData == null) {
|
|
if (examRecordData == null) {
|
|
- LOG.error("[DataGainExamExecutor]获取Redis中考试信息为空 examRecordDataId:" + id);
|
|
|
|
|
|
+ LOG.error("获取Redis中考试信息为空 examRecordDataId:" + id);
|
|
examRecordData = this.queryExamRecordData(id);
|
|
examRecordData = this.queryExamRecordData(id);
|
|
|
|
|
|
if (examRecordData != null) {
|
|
if (examRecordData != null) {
|
|
@@ -148,7 +148,7 @@ public class DataGainExamExecutor implements NodeExecuter<Long, ExamRecordData,
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
Date end = new Date();
|
|
Date end = new Date();
|
|
long times = end.getTime() - start.getTime();
|
|
long times = end.getTime() - start.getTime();
|
|
- LOG.error("[DataGainExamExecutor]修改考试记录batchNum出错 startId:" + startId + " 获取数据条数:" + outList.size() + " 耗时:" + times + "ms", e);
|
|
|
|
|
|
+ LOG.error("修改考试记录batchNum出错 startId:" + startId + " 获取数据条数:" + outList.size() + " 耗时:" + times + "ms", e);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -174,7 +174,7 @@ public class DataGainExamExecutor implements NodeExecuter<Long, ExamRecordData,
|
|
ureq.setId(id);
|
|
ureq.setId(id);
|
|
examRecordDataCloudService.updateExamRecordStatus(ureq);
|
|
examRecordDataCloudService.updateExamRecordStatus(ureq);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- LOG.error("[DataGainExamExecutor]修改考试记录状态失败 examRecordDataId:" + id, e);
|
|
|
|
|
|
+ LOG.error("修改考试记录状态失败 examRecordDataId:" + id, e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|