Browse Source

故障信息显示

lmstack 3 years ago
parent
commit
fd95776f56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/lm/lib/controller/ShowDataController.java

+ 1 - 1
src/main/java/com/lm/lib/controller/ShowDataController.java

@@ -379,7 +379,7 @@ public Map<String, Object> gpsInfo() throws IOException {
     public RspAllAlarmInfo allAlarmInfo() {
         RspAllAlarmInfo rspAllAlarmInfo = new RspAllAlarmInfo();
 
-        String sql = "t1.sn, t1.time, t2.errName, t2.errLevel, t2.errTrans from fault_info t1 left join fid_info t2 on t1.fault_code=t2.errCode where t1.time > date_format(now(), '%Y-%m-%d')";
+        String sql = "select t1.sn, t1.time, t2.errName, t2.errLevel, t2.errTrans from fault_info t1 left join fid_info t2 on t1.fault_code=t2.errCode where t1.time > date_format(now(), '%Y-%m-%d')";
         List<Map<String, Object>> faultData;
         try {
             faultData = qxcasJdbcTemplate.queryForList(sql);