|
@@ -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)";
|