远程停止核容测试+修改节点node_station
| | |
| | | public Response startDis(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.startDis(devId, battGroupNum); |
| | | } |
| | | @ApiOperation("远程停止核容测试") |
| | | @GetMapping("stopDis") |
| | | public Response stopDis(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.stopDis(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation("内阻测试") |
| | | @GetMapping("startRes") |
| | |
| | | if(sinf.getLatitude()!=null){ |
| | | wrapper1.set("latitude",sinf.getLatitude()); |
| | | } |
| | | if(sinf.getNodeStation()!=null){ |
| | | wrapper1.set("node_station",sinf.getNodeStation()); |
| | | } |
| | | wrapper1.eq("station_id",sinf.getStationId()); |
| | | |
| | | //再修改电源信息 |
| | |
| | | boolean bl = sendCmdToDev(DevCmd.CMD_Start,DevCmd.CMD_StartDischarge, devId, battGroupNum); |
| | | return new Response().set(1,bl,bl==true?"远程核容成功!":"远程核容失败!"); |
| | | } |
| | | //远程停止核容测试 |
| | | public Response stopDis(int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToDev(DevCmd.CMD_Stop,DevCmd.CMD_StopDischarge, devId, battGroupNum); |
| | | return new Response().set(1,bl,bl==true?"远程停止核容成功!":"远程停止核容失败!"); |
| | | } |
| | | //内阻测试 |
| | | public Response startRes(int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToDev(DevCmd.CMD_Start,DevCmd.CMD_StartResDischarge, devId, battGroupNum); |
| | |
| | | } |
| | | //停止内阻测试 |
| | | public Response stopRes(int devId, int battGroupNum) { |
| | | boolean bl = sendCmdToDev(DevCmd.CMD_Stop,DevCmd.CMD_StopDischarge, devId, battGroupNum); |
| | | boolean bl = sendCmdToDev(DevCmd.CMD_Stop,DevCmd.CMD_StopResDischarge, devId, battGroupNum); |
| | | return new Response().set(1,bl,bl==true?"停止内阻测试成功!":"停止内阻测试失败!"); |
| | | } |
| | | |
| | | } |