Browse Source

[fix]
1、修改收藏列表接口

limeng 4 months ago
parent
commit
3e4e319ad6

+ 2 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/dao/TourUserLikeTravelNotesMapper.java

@@ -2,6 +2,7 @@ package com.tourism.webadmin.back.dao;
 
 import com.tourism.common.core.base.dao.BaseDaoMapper;
 import com.tourism.webadmin.back.model.TourUserLikeTravelNotes;
+import com.tourism.webadmin.back.model.TourismProjectTravelNotesWrite;
 import org.apache.ibatis.annotations.Param;
 
 import java.util.*;
@@ -38,6 +39,6 @@ public interface TourUserLikeTravelNotesMapper extends BaseDaoMapper<TourUserLik
      * @param orderBy 排序字符串,order by从句的参数。
      * @return 对象列表。
      */
-    List<TourUserLikeTravelNotes> getTourUserLikeTravelNotesWithRelationWriteList(
+    List<TourismProjectTravelNotesWrite> getTourUserLikeTravelNotesWithRelationWriteList(
             @Param("tourUserLikeTravelNotesFilter") TourUserLikeTravelNotes tourUserLikeTravelNotesFilter,@Param("unmountState") Integer unmountState, @Param("orderBy") String orderBy);
 }

+ 2 - 2
application-webadmin/src/main/java/com/tourism/webadmin/back/dao/mapper/TourUserLikeTravelNotesMapper.xml

@@ -64,9 +64,9 @@
         </if>
     </select>
 
-    <select id="getTourUserLikeTravelNotesWithRelationWriteList" resultMap="BaseResultMap" parameterType="com.tourism.webadmin.back.model.TourUserLikeTravelNotes">
+    <select id="getTourUserLikeTravelNotesWithRelationWriteList" resultMap="BaseResultMap" parameterType="com.tourism.webadmin.back.model.TourismProjectTravelNotesWrite">
         SELECT
-        *
+        tour_tourism_project_travel_notes_writer.*
         FROM
         tour_user_like_travel_notes
         inner JOIN (select * from tour_tourism_project_travel_notes_writer where tour_tourism_project_travel_notes_writer.unmount_state = ${unmountState}

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

@@ -75,5 +75,5 @@ public interface TourUserLikeTravelNotesService extends IBaseService<TourUserLik
      * @param orderBy 排序参数。
      * @return 查询结果集。
      */
-    List<TourUserLikeTravelNotes> getTourUserLikeTravelNotesWithRelationWriteList(TourUserLikeTravelNotes filter,Integer unmountState, String orderBy);
+    List<TourismProjectTravelNotesWrite> getTourUserLikeTravelNotesWithRelationWriteList(TourUserLikeTravelNotes filter,Integer unmountState, String orderBy);
 }

+ 4 - 4
application-webadmin/src/main/java/com/tourism/webadmin/back/service/impl/TourUserLikeTravelNotesServiceImpl.java

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