Browse Source

添加sn参数

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

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

@@ -91,9 +91,9 @@ public class ShowDataController {
     }
 
     @ApiOperation(value = "获取低电量信息")
-    @RequestMapping(value = "/getLowSoc", method = RequestMethod.GET)
-    public Map<String, Object> getLowSoc() throws IOException {
-        String snString = this.getSn().get("snString").toString();
+    @RequestMapping(value = "/getLowSoc/{fid}/{sid}", method = RequestMethod.GET)
+    public Map<String, Object> getLowSoc(@PathVariable String fid, @PathVariable String sid) throws IOException {
+        String snString = this.getSnList(fid, sid).get("snString").toString();
         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=58 and product_id in (%s)";