Browse Source

大屏累计电池台数

alan 2 years ago
parent
commit
e24af5508e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/mapper/AlarmMsgWarnMapper.xml

+ 2 - 2
src/main/resources/mapper/AlarmMsgWarnMapper.xml

@@ -21,7 +21,7 @@
           AND t.fault_status = 0
           AND t.fault_level >= 4
           AND t.fault_time >= CURDATE()
-          AND t.fault_time < CURDATE()+1
+          AND t.fault_time < DATE_ADD(CURDATE(),INTERVAL +1 DAY)
         ORDER BY t.fault_level desc, t.id DESC limit 300
     </select>
 
@@ -73,7 +73,7 @@
         </if>
         and am.fault_status = 0
         and am.fault_time &gt;= CURDATE()
-        and am.fault_time &lt; CURDATE()+1
+        and am.fault_time &lt; DATE_ADD(CURDATE(),INTERVAL +1 DAY)
     </select>
 
     <select id="getDistrictDeviceOrder" resultType="Map">