傅行帆 5 年前
父节点
当前提交
53770c10ab
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10
    10
      src/main/resources/mapper/TaChannelMapper.xml

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

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