wangzhe 2 éve
szülő
commit
41224264d6

+ 17 - 30
mybusiness/src/main/resources/mapper/system/TUInterfaceinfoMapper.xml

@@ -314,7 +314,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             t_u_interfaceinfo a
         LEFT JOIN sys_dict_data b ON a.share_type = b.dict_value
-        where a.share_type = 'share_type_4'
         GROUP BY
             share_type
         ORDER BY dict_value
@@ -368,7 +367,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             t_u_interfaceinfo a
         LEFT JOIN sys_dict_data b ON a.share_type = b.dict_value
-        WHERE a.share_type = 'share_type_4' and DATE_FORMAT(a.create_time,'%Y') like concat('%', #{year}, '%')
+        WHERE DATE_FORMAT(a.create_time,'%Y') like concat('%', #{year}, '%')
         GROUP BY
             share_type
         ORDER BY dict_value
@@ -382,13 +381,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             t_u_interfaceinfo a
         right join sys_dept d on a.dept_id = d.dept_id
-        WHERE a.share_type = 'share_type_4' and d.parent_id = '217'
-        GROUP BY
-            d.dept_id
-        ORDER BY
-            count DESC
-        LIMIT 0,
-         5
+        WHERE (a.share_type is null or a.share_type = 'share_type_4') and d.parent_id = '217' and d.del_flag = '0' and d.status = '0'
+        GROUP BY d.dept_id
+        ORDER BY count DESC
+        LIMIT 0, 5
     </select>
 
     <select id="getCityTop5Frequency" resultMap="TUInterfaceinfoResult">
@@ -399,13 +395,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             t_u_interfaceinfo a
         right join sys_dept d on a.dept_id = d.dept_id
-        WHERE a.share_type = 'share_type_1' and d.parent_id = '214'
-        GROUP BY
-            d.dept_id
-        ORDER BY
-            count DESC
-        LIMIT 0,
-         5
+        WHERE (a.share_type is null or a.share_type = 'share_type_1') and d.parent_id = '214' and d.del_flag = '0' and d.status = '0'
+        GROUP BY d.dept_id
+        ORDER BY count DESC
+        LIMIT 0, 5
     </select>
 
     <select id="getProvinceTop20Frequency" resultMap="TUInterfaceinfoResult">
@@ -416,13 +409,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             t_u_interfaceinfo a
         right join sys_dept d on a.dept_id = d.dept_id
-        WHERE a.share_type = 'share_type_4' and d.parent_id = '217'
-        GROUP BY
-            d.dept_id
-        ORDER BY
-            count DESC
-        LIMIT 0,
-         20
+        WHERE (a.share_type is null or a.share_type = 'share_type_4') and d.parent_id = '217' and d.del_flag = '0' and d.status = '0'
+        GROUP BY d.dept_id
+        ORDER BY count DESC
+        LIMIT 0, 20
     </select>
 
     <select id="getCityTop20Frequency" resultMap="TUInterfaceinfoResult">
@@ -433,13 +423,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             t_u_interfaceinfo a
         right join sys_dept d on a.dept_id = d.dept_id
-        WHERE a.share_type = 'share_type_1' and d.parent_id = '214'
-        GROUP BY
-            d.dept_id
-        ORDER BY
-            count DESC
-        LIMIT 0,
-         20
+        WHERE (a.share_type is null or a.share_type = 'share_type_1') and d.parent_id = '214' and d.del_flag = '0' and d.status = '0'
+        GROUP BY d.dept_id
+        ORDER BY count DESC
+        LIMIT 0, 20
     </select>
 
     <select id="getImputationInterfaceRanking" resultMap="TUInterfaceinfoResult">