Просмотр исходного кода

前端"客户端版本"页面,排序显示更改

17491 2 дней назад
Родитель
Сommit
4ea0ad8536

+ 2 - 2
src/main/resources/mappings/modules/mesclient/MesClientRuntimeDao.xml

@@ -37,9 +37,9 @@
             <if test="statusMessage != null and statusMessage != ''">AND r.status_message LIKE CONCAT('%', #{statusMessage}, '%')</if>
         </where>
         ORDER BY
-          CASE WHEN p.sorts IS NULL THEN 1 ELSE 0 END,
+          CASE WHEN r.last_heartbeat >= DATE_SUB(NOW(), INTERVAL 60 SECOND) THEN 0 ELSE 1 END,
           p.sorts ASC,
-          r.station_code ASC
+          p.create_date ASC
     </select>
 
     <select id="findRuntimeList" resultType="com.jeesite.modules.mesclient.entity.MesClientRuntime">