| | |
| | | @PostMapping("/getBattAlarm") |
| | | @ApiOperation("获取电池告警数据") |
| | | public Response getBattAlarm(@RequestBody InterfaceParam interfaceParam, @RequestParam String interfaceNumber) { |
| | | return service.getBattAlarm(interfaceParam.getBattgroupIds(), interfaceNumber); |
| | | return service.getBattAlarm(interfaceParam.getBattgroupIds(), interfaceNumber, null); |
| | | } |
| | | |
| | | @PostMapping("/getDevAlarm") |
| | |
| | | } |
| | | |
| | | @PostMapping("/getRealtime") |
| | | @ApiOperation("获取实时数据") |
| | | @ApiOperation("获取实时状态信息") |
| | | public Response getRealtime(@RequestBody InterfaceParam interfaceParam) { |
| | | return service.getRealTime(interfaceParam); |
| | | } |
| | |
| | | } |
| | | |
| | | @GetMapping("getBattStationInfoByStationId") |
| | | @ApiOperation("根据机房id获取电池信息") |
| | | public Response getBattStationInfoByStationId(@RequestParam String stationId,@RequestParam String interfaceName){ |
| | | return service.getBattStationInfoByStationId(stationId,interfaceName); |
| | | @ApiOperation("获取电池机房信息") |
| | | public Response getBattStationInfoByStationId(@RequestParam String stationId,@RequestParam String interfaceNumber){ |
| | | return service.getBattStationInfoByStationId(stationId,interfaceNumber); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation("发送指令,获取参数(启动|停止|获取参数)") |
| | | @GetMapping("sendCmdGet") |
| | | public Response sendCmdGet(@RequestParam int opCmd,@RequestParam Integer testCmd,@RequestParam int devId,@RequestParam int battGroupNum){ |
| | | return service.sendCmdGet(opCmd,testCmd,devId,battGroupNum); |
| | | public Response sendCmdGet(@RequestParam int opCmd,@RequestParam Integer testCmd,@RequestParam int devId,@RequestParam int battGroupNum,@RequestParam String interfaceNumber){ |
| | | return service.sendCmdGet(opCmd,testCmd,devId,battGroupNum,interfaceNumber); |
| | | } |
| | | |
| | | @ApiOperation("发送指令,设置参数") |
| | | @PostMapping("sendCmdSet") |
| | | public Response sendCmdSet(@RequestBody Fbs9100Setparam param){ |
| | | return service.sendCmdSet(param); |
| | | public Response sendCmdSet(@RequestBody Fbs9100Setparam param,@RequestParam String interfaceNumber){ |
| | | return service.sendCmdSet(param,interfaceNumber); |
| | | } |
| | | } |