魏超 5 년 전
부모
커밋
05a0510a4e
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6
    6
      src/main/resources/mapper/TaPersonVisitRecordMapper.xml

+ 6
- 6
src/main/resources/mapper/TaPersonVisitRecordMapper.xml 파일 보기

195
                 where t.event_type = 'building'
195
                 where t.event_type = 'building'
196
                 and t.consultant_id = #{userId}
196
                 and t.consultant_id = #{userId}
197
                 and t.org_id = #{orgId}
197
                 and t.org_id = #{orgId}
198
-                and t.`event` = 'share' order by t.visit_time desc
198
+                and t.`event` = 'share' order by t.visit_time desc limit 9999
199
             ) t
199
             ) t
200
             group by t.target_id
200
             group by t.target_id
201
 
201
 
216
         where t.event_type = 'activity'
216
         where t.event_type = 'activity'
217
         and t.consultant_id = #{userId}
217
         and t.consultant_id = #{userId}
218
         and t.org_id = #{orgId}
218
         and t.org_id = #{orgId}
219
-        and t.`event` = 'share' order by t.visit_time desc
219
+        and t.`event` = 'share' order by t.visit_time desc limit 9999
220
         ) t
220
         ) t
221
         group by t.target_id
221
         group by t.target_id
222
 
222
 
237
         where t.event_type = 'help'
237
         where t.event_type = 'help'
238
         and t.consultant_id = #{userId}
238
         and t.consultant_id = #{userId}
239
         and t.org_id = #{orgId}
239
         and t.org_id = #{orgId}
240
-        and t.`event` = 'share' order by t.visit_time desc
240
+        and t.`event` = 'share' order by t.visit_time desc limit 9999
241
         ) t
241
         ) t
242
         group by t.target_id
242
         group by t.target_id
243
 
243
 
259
         and t.consultant_id = #{userId}
259
         and t.consultant_id = #{userId}
260
         and t.org_id = #{orgId}
260
         and t.org_id = #{orgId}
261
         and t.`event` = 'share'
261
         and t.`event` = 'share'
262
-        group by t.target_id order by t.visit_time desc
262
+        group by t.target_id order by t.visit_time desc limit 9999
263
         ) t
263
         ) t
264
 
264
 
265
         union all
265
         union all
279
         where t.event_type = 'news'
279
         where t.event_type = 'news'
280
         and t.consultant_id = #{userId}
280
         and t.consultant_id = #{userId}
281
         and t.org_id = #{orgId}
281
         and t.org_id = #{orgId}
282
-        and t.`event` = 'share' order by t.visit_time desc
282
+        and t.`event` = 'share' order by t.visit_time desc limit 9999
283
         ) t
283
         ) t
284
         group by t.target_id
284
         group by t.target_id
285
 
285
 
300
             where t.event_type = 'h5'
300
             where t.event_type = 'h5'
301
             and t.consultant_id = #{userId}
301
             and t.consultant_id = #{userId}
302
             and t.org_id = #{orgId}
302
             and t.org_id = #{orgId}
303
-            and t.`event` = 'share' order by t.visit_time desc
303
+            and t.`event` = 'share' order by t.visit_time desc limit 9999
304
             ) t
304
             ) t
305
             group by t.target_id
305
             group by t.target_id
306
         ) t
306
         ) t