Browse Source

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

傅行帆 5 years ago
parent
commit
b130f390c1
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/main/resources/mapper/statistic/TaActivityStaticMapper.xml

+ 4
- 2
src/main/resources/mapper/statistic/TaActivityStaticMapper.xml View File

990
             'activity', 'group','h5','help','liveApp','livePost')
990
             'activity', 'group','h5','help','liveApp','livePost')
991
             and a.org_id = #{orgId}
991
             and a.org_id = #{orgId}
992
             <if test="targetType != null and targetType != ''">
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
             </if>
995
             </if>
995
             <if test="startDate != null ">
996
             <if test="startDate != null ">
996
                 and a.create_date &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )
997
                 and a.create_date &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )
1010
         From ta_share_count a where a.tagert_type in ( 'activity', 'group','h5','help','liveApp','livePost')
1011
         From ta_share_count a where a.tagert_type in ( 'activity', 'group','h5','help','liveApp','livePost')
1011
         and a.org_id = #{orgId}
1012
         and a.org_id = #{orgId}
1012
         <if test="targetType != null and targetType != ''">
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
         </if>
1016
         </if>
1015
         <if test="startDate != null ">
1017
         <if test="startDate != null ">
1016
             and a.create_date &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )
1018
             and a.create_date &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d %H:%i:%S' )