fix:88297

This commit is contained in:
梁琦涛
2024-08-08 11:47:11 +08:00
parent aacecc0c13
commit d5ab21e17a
3 changed files with 20 additions and 1 deletions
@@ -1538,6 +1538,12 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
while (startIndex < listIds.size()) {
int endIndex = getEndIndex(startIndex, batchCount, listIds);
List<String> listIdsSub = listIds.subList(startIndex, endIndex);
if (Objects.equals(opType, LawsHomeSearchCommon.LAWS_ES_DELETE)) {
for (String s : listIdsSub) {
jeroElasticsearchTemplate.delete(HomeSearchEnum.INDEX_NAME_DOCUMENT_ZQ.getValue(), HomeSearchEnum.TYPE_NAME_DOCUMENT_ZQ.getValue(), s);
}
break;
}
List<LawsDomesticStandard> listLawsDomesticStandard = lawsDomesticStandardService.listByIds(listIdsSub);
if(CollectionUtils.isEmpty(listLawsDomesticStandard)){
break;
@@ -1701,6 +1707,12 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
while (startIndex < listIds.size()) {
int endIndex = getEndIndex(startIndex, batchCount, listIds);
List<String> listIdsSub = listIds.subList(startIndex, endIndex);
if (Objects.equals(opType, LawsHomeSearchCommon.LAWS_ES_DELETE)) {
for (String s : listIdsSub) {
jeroElasticsearchTemplate.delete(HomeSearchEnum.INDEX_NAME_DOCUMENT_ZQ.getValue(), HomeSearchEnum.TYPE_NAME_DOCUMENT_ZQ.getValue(), s);
}
break;
}
List<LawsEnterpriseStandard> listLawsEnterpriseStandard = lawsEnterpriseStandardService.listByIds(listIdsSub);
if(CollectionUtils.isEmpty(listLawsEnterpriseStandard)){
break;