Merge branch 'refs/heads/zxwy-esSync' into dev1107

This commit is contained in:
yang
2024-12-18 13:39:57 +08:00

View File

@@ -133,7 +133,7 @@ public class PhpOnlineStudyRecordScheduledTasks {
}
// 调用批量更新方法
// toBeUpdatedEs(toBeUpdatedEs, indexName);
toBeUpdatedEs(toBeUpdatedEs);
}
return tempResultList;
}
@@ -181,7 +181,7 @@ public class PhpOnlineStudyRecordScheduledTasks {
return courseStudyDtoList;
}
private void toBeUpdatedEs(List<CourseStudyDto> toBeUpdatedEsData, String indexName) {
private void toBeUpdatedEs(List<CourseStudyDto> toBeUpdatedEsData) {
if (CollUtil.isEmpty(toBeUpdatedEsData)) {
return;
}
@@ -192,7 +192,7 @@ public class PhpOnlineStudyRecordScheduledTasks {
docMap.put("progress", courseStudyDto.getProgress());
// 创建更新请求并传入单一的docMap
UpdateRequest updateRequest = new UpdateRequest(indexName, courseStudyDto.getId())
UpdateRequest updateRequest = new UpdateRequest("new_study_resource", courseStudyDto.getId())
.doc(docMap, XContentType.JSON);
// 将请求添加到批量请求中