|
@@ -196,6 +196,7 @@
|
196
|
196
|
and t.consultant_id = #{userId}
|
197
|
197
|
and t.org_id = #{orgId}
|
198
|
198
|
and t.`event` = 'share'
|
|
199
|
+ group by t.target_id
|
199
|
200
|
order by t.visit_time desc
|
200
|
201
|
|
201
|
202
|
union all
|
|
@@ -213,6 +214,7 @@
|
213
|
214
|
and t.consultant_id = #{userId}
|
214
|
215
|
and t.org_id = #{orgId}
|
215
|
216
|
and t.`event` = 'share'
|
|
217
|
+ group by t.target_id
|
216
|
218
|
order by t.visit_time desc
|
217
|
219
|
|
218
|
220
|
union all
|
|
@@ -230,6 +232,7 @@
|
230
|
232
|
and t.consultant_id = #{userId}
|
231
|
233
|
and t.org_id = #{orgId}
|
232
|
234
|
and t.`event` = 'share'
|
|
235
|
+ group by t.target_id
|
233
|
236
|
order by t.visit_time desc
|
234
|
237
|
|
235
|
238
|
union all
|
|
@@ -247,6 +250,7 @@
|
247
|
250
|
and t.consultant_id = #{userId}
|
248
|
251
|
and t.org_id = #{orgId}
|
249
|
252
|
and t.`event` = 'share'
|
|
253
|
+ group by t.target_id
|
250
|
254
|
order by t.visit_time desc
|
251
|
255
|
|
252
|
256
|
union all
|
|
@@ -263,6 +267,7 @@
|
263
|
267
|
where t.event_type = 'news'
|
264
|
268
|
and t.consultant_id = #{userId}
|
265
|
269
|
and t.org_id = #{orgId}
|
|
270
|
+ group by t.target_id
|
266
|
271
|
and t.`event` = 'share'
|
267
|
272
|
order by t.visit_time desc
|
268
|
273
|
|
|
@@ -281,6 +286,7 @@
|
281
|
286
|
and t.consultant_id = #{userId}
|
282
|
287
|
and t.org_id = #{orgId}
|
283
|
288
|
and t.`event` = 'share'
|
|
289
|
+ group by t.target_id
|
284
|
290
|
order by t.visit_time desc
|
285
|
291
|
</select>
|
286
|
292
|
|