傅行帆 5 年之前
父節點
當前提交
53770c10ab
共有 1 個檔案被更改,包括 10 行新增10 行删除
  1. 10
    10
      src/main/resources/mapper/TaChannelMapper.xml

+ 10
- 10
src/main/resources/mapper/TaChannelMapper.xml 查看文件

108
             and t.target_id = #{activityId}
108
             and t.target_id = #{activityId}
109
         </if>
109
         </if>
110
         <if test="activityType != null and activityType != ''">
110
         <if test="activityType != null and activityType != ''">
111
-            and t.event_type = #{activityType}
111
+            and t.target_type = #{activityType}
112
         </if>
112
         </if>
113
         <if test="buildingId != null and buildingId != ''">
113
         <if test="buildingId != null and buildingId != ''">
114
             and t.building_id = #{buildingId}
114
             and t.building_id = #{buildingId}
135
         FROM
135
         FROM
136
         ta_person_visit_record t
136
         ta_person_visit_record t
137
         WHERE
137
         WHERE
138
-        t.`event` = 'detail'
138
+        t.`event` in ( 'detail', 'house_list' )
139
         AND t.event_type IN (
139
         AND t.event_type IN (
140
         'activity',
140
         'activity',
141
         'help',
141
         'help',
144
         'news',
144
         'news',
145
         'project',
145
         'project',
146
         'live',
146
         'live',
147
-        'salesBatch'
147
+        'house'
148
         )
148
         )
149
         <if test="targetId != null and targetId != ''">
149
         <if test="targetId != null and targetId != ''">
150
             and t.target_id = #{targetId}
150
             and t.target_id = #{targetId}
192
         FROM
192
         FROM
193
         ta_person_visit_record t
193
         ta_person_visit_record t
194
         WHERE
194
         WHERE
195
-        t.`event` = 'detail'
195
+        t.`event` in ( 'detail', 'house_list' )
196
         AND t.event_type IN (
196
         AND t.event_type IN (
197
         'activity',
197
         'activity',
198
         'help',
198
         'help',
201
         'news',
201
         'news',
202
         'project',
202
         'project',
203
         'live',
203
         'live',
204
-        'salesBatch'
204
+        'house'
205
         )
205
         )
206
         AND t.org_id = #{orgId}
206
         AND t.org_id = #{orgId}
207
 <!--        AND t.visit_time >= DATE_FORMAT(#{startDate}, '%Y-%m-%d')-->
207
 <!--        AND t.visit_time >= DATE_FORMAT(#{startDate}, '%Y-%m-%d')-->
271
             and t.target_id = #{activityId}
271
             and t.target_id = #{activityId}
272
         </if>
272
         </if>
273
         <if test="activityType != null and activityType != ''">
273
         <if test="activityType != null and activityType != ''">
274
-            and t.event_type = #{activityType}
274
+            and t.target_type = #{activityType}
275
         </if>
275
         </if>
276
         <if test="buildingId != null and buildingId != ''">
276
         <if test="buildingId != null and buildingId != ''">
277
             and t.building_id = #{buildingId}
277
             and t.building_id = #{buildingId}
299
         FROM
299
         FROM
300
         ta_person_visit_record t
300
         ta_person_visit_record t
301
         WHERE
301
         WHERE
302
-        t.`event` = 'detail'
302
+        t.`event` in ( 'detail', 'house_list' )
303
         AND t.event_type IN (
303
         AND t.event_type IN (
304
         'activity',
304
         'activity',
305
         'help',
305
         'help',
308
         'news',
308
         'news',
309
         'project',
309
         'project',
310
         'live',
310
         'live',
311
-        'salesBatch'
311
+        'house'
312
         )
312
         )
313
         <if test="targetId != null and targetId != ''">
313
         <if test="targetId != null and targetId != ''">
314
             and t.target_id = #{targetId}
314
             and t.target_id = #{targetId}
356
         FROM
356
         FROM
357
         ta_person_visit_record t
357
         ta_person_visit_record t
358
         WHERE
358
         WHERE
359
-        t.`event` = 'detail'
359
+        t.`event` in ( 'detail', 'house_list' )
360
         AND t.event_type IN (
360
         AND t.event_type IN (
361
         'activity',
361
         'activity',
362
         'help',
362
         'help',
365
         'news',
365
         'news',
366
         'project',
366
         'project',
367
         'live',
367
         'live',
368
-        'salesBatch'
368
+        'house'
369
         )
369
         )
370
         AND t.org_id = #{orgId}
370
         AND t.org_id = #{orgId}
371
         <!--        AND t.visit_time >= DATE_FORMAT(#{startDate}, '%Y-%m-%d')-->
371
         <!--        AND t.visit_time >= DATE_FORMAT(#{startDate}, '%Y-%m-%d')-->