| | |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取并联电源放电参数") |
| | | @GetMapping("searchParalleParam") |
| | | public Response searchParalleParam(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchParalleParam(opCmd, devId); |
| | | public Response searchParalleParam(@RequestParam int opCmd, @RequestParam int battGroupNum, @RequestParam int devId) { |
| | | return service.searchParalleParam(opCmd, battGroupNum, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取kgdy放电参数") |
| | |
| | | } |
| | | UpdateWrapper updateWrapper = new UpdateWrapper(); |
| | | updateWrapper.set("op_cmd", m_cmd); |
| | | updateWrapper.set("BattGroupNum", battGroupNum); |
| | | if (cmd == FBS9100_ComBase.CMD_Start || cmd == FBS9100_ComBase.CMD_Stop) { |
| | | updateWrapper.set("BattGroupNum", battGroupNum); |
| | | updateWrapper.set("TestCmd", testCmd); |
| | | } |
| | | updateWrapper.eq("dev_id", dev_id); |
| | |
| | | } |
| | | |
| | | //在线监测-实时监控-读取并联电源放电参数 |
| | | public Response searchParalleParam(int opCmd, int devId) { |
| | | public Response searchParalleParam(int opCmd, int battGroupNum, int devId) { |
| | | PageHelper.startPage(1, 1); |
| | | QueryWrapper wrapper = new QueryWrapper(); |
| | | wrapper.eq("dev_id", devId); |
| | | boolean bl = sendCmdToFBS9100Dev3(opCmd, 0, devId, 0); |
| | | boolean bl = sendCmdToFBS9100Dev3(opCmd, 0, devId, battGroupNum); |
| | | Fbs9100Setparam paralleParam = mapper.selectOne(wrapper); |
| | | return new Response().setII(1, bl, paralleParam, bl == true ? "读取参数成功!" : "读取并联电源参数失败,请检查网络!"); |
| | | } |