Browse Source

sql优化

master
sunyuchao 4 years ago
parent
commit
b1c45ef558
  1. 4
      epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetuser/CustomerStaffDao.xml

4
epmet-module/data-aggregator/data-aggregator-server/src/main/resources/mapper/epmetuser/CustomerStaffDao.xml

@ -96,10 +96,10 @@
'grid_manager' 'grid_manager'
</otherwise> </otherwise>
</choose> </choose>
, sr.created_time DESC<!-- 标注有点位领导角色的人不参与排序也就是默认拍在前边 --> , sr.created_time DESC
) t ) t
GROUP BY t.staff_id GROUP BY t.staff_id
ORDER BY t.is_first <![CDATA[<>]]> 1 ORDER BY t.is_first <![CDATA[<>]]> 1, t.staff_id desc<!-- 标注有单位领导角色的人不参与排序也就是默认拍在前边 -->
LIMIT #{pageNo}, #{pageSize} LIMIT #{pageNo}, #{pageSize}
</select> </select>

Loading…
Cancel
Save