diff --git a/laws-modules/src/main/java/com/jero/modules/laws/home/service/impl/LawsHomeSearchServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/home/service/impl/LawsHomeSearchServiceImpl.java index 1a6d4aa4..fce109f7 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/home/service/impl/LawsHomeSearchServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/home/service/impl/LawsHomeSearchServiceImpl.java @@ -1150,7 +1150,7 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService { List listIdsSub = listIds.subList(startIndex, endIndex); List listLawsDomesticStandard = lawsDomesticStandardService.listByIds(listIdsSub); if(CollectionUtils.isEmpty(listLawsDomesticStandard)){ - continue; + break; } for (LawsDomesticStandard lawsDomesticStandard : listLawsDomesticStandard) { createData(resourceType, opType, lawsDomesticStandard); @@ -1262,7 +1262,7 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService { List listIdsSub = listIds.subList(startIndex, endIndex); List listLawsOverseasStandard = lawsOverseasStandardService.listByIds(listIdsSub); if(CollectionUtils.isEmpty(listLawsOverseasStandard)){ - continue; + break; } for (LawsOverseasStandard lawsOverseasStandard : listLawsOverseasStandard) { try {