Browse Source

添加sn参数

bridge 2 years ago
parent
commit
1267fb63a3
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

@@ -128,7 +128,7 @@ public class ShowDataController {
     @RequestMapping(value = "/getOffline/{fid}/{sid}", method = RequestMethod.GET)
     public Map<String, Object> getOffline(@PathVariable String fid, @PathVariable String sid) throws IOException {
         String snString = this.getSnList(fid, sid).get("snString").toString();
-        List<String> snList = (List<String>) this.getSn().get("snList");
+        List<String> snList = (List<String>) this.getSnList(fid, sid).get("snList");
         Map<String, Object> res = new HashMap<>();
         String sql = "select product_id as sn, start_time as time,TIMESTAMPDIFF(hour,start_time,now()) as drua, Batpos from all_fault_info where end_time = '0000-00-00 00:00:00' " +
                 "and code=59 and product_id in (%s)";