瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents into dev

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

+ 4
- 2
src/main/resources/mapper/statistic/TaActivityStaticMapper.xml 查看文件

@@ -990,7 +990,8 @@
990 990
             'activity', 'group','h5','help','liveApp','livePost')
991 991
             and a.org_id = #{orgId}
992 992
             <if test="targetType != null and targetType != ''">
993
-                and a.tagert_type = #{targetType}
993
+                and (case when #{targetType} = 'live' then a.tagert_type in ('liveApp', 'livePost') else a.tagert_type = #{targetType}
994
+                end)
994 995
             </if>
995 996
             <if test="startDate != null ">
996 997
                 and a.create_date &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )
@@ -1010,7 +1011,8 @@
1010 1011
         From ta_share_count a where a.tagert_type in ( 'activity', 'group','h5','help','liveApp','livePost')
1011 1012
         and a.org_id = #{orgId}
1012 1013
         <if test="targetType != null and targetType != ''">
1013
-            and a.tagert_type = #{targetType}
1014
+            and (case when #{targetType} = 'live' then a.tagert_type in ('liveApp', 'livePost') else a.tagert_type = #{targetType}
1015
+            end)
1014 1016
         </if>
1015 1017
         <if test="startDate != null ">
1016 1018
             and a.create_date &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )