魏超 5 anni fa
parent
commit
4926d260e0

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

@@ -681,7 +681,7 @@
681 681
             and t.building_id = #{buildingId}
682 682
         </if>
683 683
         <if test="targetType != null and targetType != ''">
684
-            and (case when #{targetType} = 'activity' then t.target_type = 'dynamic' else t.target_type = #{targetType}
684
+            and (case when #{targetType} = 'activity' then t.target_type = 'dynamic' when #{targetType} = 'h5' then t.event_type = 'h5' else t.target_type = #{targetType}
685 685
             end)
686 686
         </if>
687 687
         <if test="startDate != null">
@@ -715,7 +715,7 @@
715 715
             and t.building_id = #{buildingId}
716 716
         </if>
717 717
         <if test="targetType != null and targetType != ''">
718
-            and (case when #{targetType} = 'activity' then t.target_type = 'dynamic' else t.target_type = #{targetType}
718
+            and (case when #{targetType} = 'activity' then t.target_type = 'dynamic' when #{targetType} = 'h5' then t.event_type = 'h5' else t.target_type = #{targetType}
719 719
             end)
720 720
         </if>
721 721
         <if test="startDate != null">