lidongyu преди 1 година
родител
ревизия
03f55a823a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/resources/mapper/digitalforest/ForestBigDataMapper.xml

+ 1 - 1
src/main/resources/mapper/digitalforest/ForestBigDataMapper.xml

@@ -116,7 +116,7 @@
     <select id="selectGwRs" resultType="java.util.LinkedHashMap">
         select a.gridName,a.count-IFNULL(b.countQj,0)  as zz,IFNULL(b.countQj,0) as qj from ( select  b.name  as gridName , count(a.id) as count ,b.id from centerdata_t_forest_linleader a , centerdata_t_forest_grid_level b  where a.lin_grid_id= b.id
         group by b.name ) a  left join (SELECT count(a.id) as countQj,a.lin_grid_id  FROM `centerdata_t_forest_linleader` a  ,centerdata_t_leave b where a.user_id =b.leave_user_id and b.leave_end_time>= current_timestamp group by a.user_id ,a.lin_grid_id) b on a.id= b.lin_grid_id
-        ORDER BY zg DESC
+        ORDER BY zz DESC
     </select>
 
     <select id="selectCenterdataTForestResourcesSum" parameterType="CenterdataTForestResources"