Эх сурвалжийг харах

[fix]
游记所选地区去掉首页的选项

chenchen 3 сар өмнө
parent
commit
d61f5c8b99

+ 3 - 0
application-webadmin/src/main/java/com/tourism/webadmin/app/website/controller/WebsiteTourismProjectTravelNotesController.java

@@ -225,6 +225,9 @@ public class WebsiteTourismProjectTravelNotesController {
         directoryInfo.setEnable(1);
         directoryInfo.setDirectoryType(1);
         List<DirectoryInfo> directoryInfoList = directoryInfoService.getDirectoryInfoList(directoryInfo, orderBy);
+        //去掉地区的首页区域
+        directoryInfoList.removeIf(item -> item.getId().equals(10L));
+        //转换并返回数据
         List<TourTravelNotesDirectoryVo> tourTravelNotesDirectoryVoList= new ArrayList<>();
         directoryInfoList.stream().forEach(item->{
             TourTravelNotesDirectoryVo tourTravelNotesDirectoryVo = new TourTravelNotesDirectoryVo();