|
|
@@ -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">
|