Parcourir la source

feat: 数据大屏汇总逻辑调整;

hanchaolong il y a 1 semaine
Parent
commit
7f1770bc68

+ 2 - 4
jd-logistics-modules/jd-logistics-system/src/main/resources/mapper/logistics/LargeScreenReportMapper.xml

@@ -203,14 +203,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 GROUP BY d.receiver_province
             ) inflow_cost ON a.NAME = inflow_cost.receiver_province
         ) t
-        <where>
-            <if test="rankType != null and rankType != '' and rankType == '1'">
+            <if test="rankType != null and rankType != '' and rankType == 1">
                 ORDER BY outflow_amount DESC
             </if>
-            <if test="rankType != null and rankType != '' and rankType == '2'">
+            <if test="rankType != null and rankType != '' and rankType == 2">
                 ORDER BY outflow_num DESC
             </if>
-        </where>
     </select>
 
     <!-- 供应商列表-->