|
@@ -99,7 +99,7 @@ public class CopyDataServiceImpl implements CopyDataService {
|
|
|
boolean sucss = true;
|
|
|
long s1 = System.currentTimeMillis();
|
|
|
try {
|
|
|
- log.warn("数据复制开始 | fromRootOrgId=" + fromRootOrgId + " | toRootOrgId=" + toRootOrgId);
|
|
|
+ log.warn("CopyData | 数据复制开始 | fromRootOrgId=" + fromRootOrgId + " | toRootOrgId=" + toRootOrgId);
|
|
|
redisClient.expire(copyQuestionDataLock, cacheLockTimeout);
|
|
|
if (CollectionUtils.isNotEmpty(courses)) {
|
|
|
List<CopyDataDto> dtos = new ArrayList<>();
|
|
@@ -112,7 +112,7 @@ public class CopyDataServiceImpl implements CopyDataService {
|
|
|
copyDataProducer.startDispose(8, param, dtos.size());
|
|
|
redisClient.expire(copyQuestionDataLock, cacheLockTimeout);
|
|
|
copyQuesTypeName(fromRootOrgId, toRootOrgId);
|
|
|
- String countInfo = "成功数:" + copyDataProducer.getProcess() + " 总数:" + copyDataProducer.getTotal();
|
|
|
+ String countInfo = "CopyData | 成功数:" + copyDataProducer.getProcess() + " 总数:" + copyDataProducer.getTotal();
|
|
|
log.warn(countInfo);
|
|
|
} else {
|
|
|
log.warn("没有试卷数据需要处理");
|
|
@@ -124,10 +124,10 @@ public class CopyDataServiceImpl implements CopyDataService {
|
|
|
redisClient.delete(copyQuestionDataLock);
|
|
|
long s2 = System.currentTimeMillis();
|
|
|
if (sucss) {
|
|
|
- log.warn("数据复制结束 | 成功 | " + ((s2 - s1) / 1000) + "秒 | fromRootOrgId=" + fromRootOrgId
|
|
|
+ log.warn("CopyData | 数据复制结束 | 成功 | " + ((s2 - s1) / 1000) + "秒 | fromRootOrgId=" + fromRootOrgId
|
|
|
+ " | toRootOrgId=" + toRootOrgId);
|
|
|
} else {
|
|
|
- log.warn("数据复制结束 | 失败 | " + ((s2 - s1) / 1000) + "秒 | fromRootOrgId=" + fromRootOrgId
|
|
|
+ log.warn("CopyData | 数据复制结束 | 失败 | " + ((s2 - s1) / 1000) + "秒 | fromRootOrgId=" + fromRootOrgId
|
|
|
+ " | toRootOrgId=" + toRootOrgId);
|
|
|
}
|
|
|
}
|