chenchen 5 сар өмнө
parent
commit
df45944e35

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/controller/TourTourismProjectTravelNotesController.java

@@ -173,7 +173,7 @@ public class TourTourismProjectTravelNotesController {
         TourTourismProjectTravelNotes tourTourismProjectTravelNotesFilter = MyModelUtil.copyTo(tourTourismProjectTravelNotesDtoFilter, TourTourismProjectTravelNotes.class);
         String orderBy = MyOrderParam.buildOrderBy(orderParam, TourTourismProjectTravelNotes.class);
         List<TourTourismProjectTravelNotes> tourTourismProjectTravelNotesList =
-                tourTourismProjectTravelNotesService.getTourTourismProjectTravelNotesList(tourTourismProjectTravelNotesFilter, orderBy);
+                tourTourismProjectTravelNotesService.getTourTourismProjectTravelNotesListWithRelation(tourTourismProjectTravelNotesFilter, orderBy);
         return ResponseResult.success(MyPageUtil.makeResponseData(tourTourismProjectTravelNotesList, TourTourismProjectTravelNotesVo.class));
     }
 

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/service/impl/TourTourismProjectTravelNotesServiceImpl.java

@@ -145,7 +145,7 @@ public class TourTourismProjectTravelNotesServiceImpl extends BaseService<TourTo
         // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。
         // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。
         int batchSize = resultList instanceof Page ? 0 : 1000;
-        this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize);
+        this.buildRelationForDataList(resultList, MyRelationParam.dictOnly(), batchSize);
         return resultList;
     }
 

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/service/impl/TourismProjectServiceImpl.java

@@ -172,7 +172,7 @@ public class TourismProjectServiceImpl extends BaseService<TourismProject, Long>
         // 在缺省生成的代码中,如果查询结果resultList不是Page对象,说明没有分页,那么就很可能是数据导出接口调用了当前方法。
         // 为了避免一次性的大量数据关联,规避因此而造成的系统运行性能冲击,这里手动进行了分批次读取,开发者可按需修改该值。
         int batchSize = resultList instanceof Page ? 0 : 1000;
-        this.buildRelationForDataList(resultList, MyRelationParam.normal(), batchSize);
+        this.buildRelationForDataList(resultList, MyRelationParam.dictOnly(), batchSize);
         return resultList;
     }