fix: ES更新国标外标无限刷日志

This commit is contained in:
2024-04-26 17:27:21 +08:00
parent 6d27a477ea
commit 163d36656c
@@ -1150,7 +1150,7 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
List<String> listIdsSub = listIds.subList(startIndex, endIndex); List<String> listIdsSub = listIds.subList(startIndex, endIndex);
List<LawsDomesticStandard> listLawsDomesticStandard = lawsDomesticStandardService.listByIds(listIdsSub); List<LawsDomesticStandard> listLawsDomesticStandard = lawsDomesticStandardService.listByIds(listIdsSub);
if(CollectionUtils.isEmpty(listLawsDomesticStandard)){ if(CollectionUtils.isEmpty(listLawsDomesticStandard)){
continue; break;
} }
for (LawsDomesticStandard lawsDomesticStandard : listLawsDomesticStandard) { for (LawsDomesticStandard lawsDomesticStandard : listLawsDomesticStandard) {
createData(resourceType, opType, lawsDomesticStandard); createData(resourceType, opType, lawsDomesticStandard);
@@ -1262,7 +1262,7 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
List<String> listIdsSub = listIds.subList(startIndex, endIndex); List<String> listIdsSub = listIds.subList(startIndex, endIndex);
List<LawsOverseasStandard> listLawsOverseasStandard = lawsOverseasStandardService.listByIds(listIdsSub); List<LawsOverseasStandard> listLawsOverseasStandard = lawsOverseasStandardService.listByIds(listIdsSub);
if(CollectionUtils.isEmpty(listLawsOverseasStandard)){ if(CollectionUtils.isEmpty(listLawsOverseasStandard)){
continue; break;
} }
for (LawsOverseasStandard lawsOverseasStandard : listLawsOverseasStandard) { for (LawsOverseasStandard lawsOverseasStandard : listLawsOverseasStandard) {
try { try {