Commit 818632d2 authored by kiritoausna's avatar kiritoausna

2022-5.31 在线设备数量统计sql 修改

parent 16bc3d61
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
where tailingid = #{tailingid} where tailingid = #{tailingid}
and DATE_FORMAT(datarealtime, '%Y-%m-%d %H:%m:%s') <= DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 30 MINUTE), '%Y-%m-%d and DATE_FORMAT(datarealtime, '%Y-%m-%d %H:%m:%s') <= DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 30 MINUTE), '%Y-%m-%d
%H:%m:%s') %H:%m:%s')
or tailingid = #{tailingid} and initialstateno = '0' and datarealtime is Null or tailingid = #{tailingid} and datarealtime is Null
</select> </select>
<update id="enforceOnline"> <update id="enforceOnline">
update tb_drybeachequipinfor update tb_drybeachequipinfor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment