| | |
| | | UserInf userInf = (UserInf) ActionUtil.getUser(); |
| | | return service.searchStationNameInGroup(userInf.getUId().intValue(), stationName1); |
| | | } |
| | | @GetMapping("/searchStationNameInGroup2") |
| | | @ApiOperation(value = "查询用户管理下的机房",notes = "原serchStationNameInGroup接口,返回stationName") |
| | | public Response searchBattGroupByStationName2(@RequestParam(required = false)String stationName1){ |
| | | UserInf userInf = (UserInf) ActionUtil.getUser(); |
| | | return service.searchStationNameInGroup2(userInf.getUId().intValue(), stationName1); |
| | | } |
| | | |
| | | @GetMapping("/searchInform") |
| | | @ApiOperation(value = "电池组信息配置中查询所有的电池组信息") |
| | | public Response searchInform(@RequestParam int pageNum,@RequestParam int pageSize,@RequestParam(required = false)String stationName1,@RequestParam(required = false)String stationName2,@RequestParam(required = false)String stationName5,@RequestParam(required = false)String stationName3){ |
| | |
| | | return service.add(battinf,userInf.getUId().intValue()); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @PostMapping("delete") |
| | | @ApiOperation(value = "删除电池组") |
| | | public Response delete(@RequestParam Integer battgroupId){ |
| | | service.deleteByBattgroupId(battgroupId); |
| | | return new Response().setII(1,"删除成功"); |
| | | } |
| | | |
| | | @PutMapping |
| | | @PostMapping("update") |
| | | @ApiOperation(value = "更新电池组") |
| | | public Response update(@RequestBody Battinf battinf){ |
| | | return service.update(battinf); |
| | | } |
| | | |
| | | @PutMapping("/updateList") |
| | | @PostMapping("/updateList") |
| | | @ApiOperation(value = "更新电池组List") |
| | | public Response updateList(@RequestBody List<Battinf> battinfs){ |
| | | return service.updateList(battinfs); |
| | | } |
| | | |
| | | |
| | | @PutMapping("/updatePubByDevId") |
| | | @PostMapping("/updatePubByDevId") |
| | | @ApiOperation(value = "根据设备id修改PublicKeyY值") |
| | | public Response updatePubByDevId(@RequestParam String publicKeyY,@RequestParam Integer deviceId){ |
| | | return service.updatePublicKeyByDevId(publicKeyY,deviceId); |
| | | } |
| | | |
| | | @PutMapping("/updateIP") |
| | | @PostMapping("/updateIP") |
| | | @ApiOperation(value = "更新电池组网关等信息",notes = "todo还需向设备发送相关指令和服务需重启") |
| | | public Response updateIp(@RequestBody Battinf battinf){ |
| | | //todo Fbs9100_setparamImpl().sendCmdToFBS9100Dev |
| | |
| | | return new Response().set(1, service.searchMaxDevId(devId)); |
| | | } |
| | | |
| | | @PutMapping("monCapWH") |
| | | @GetMapping("setKeyIdWithDeviceId") |
| | | @ApiOperation(value = "keyid绑定设备id", notes = "旧:BattInfAction!getDeviceId") |
| | | public Response setKeyIdWithDeviceId(@RequestParam Integer devId,@RequestParam String keyId) { |
| | | return service.setKeyIdWithDeviceId(devId,keyId); |
| | | } |
| | | |
| | | @PostMapping("updateMonCapWH") |
| | | @ApiModelProperty(value = "标称容量KWH修改", notes = "传入battGroupId和nomCapWH") |
| | | public Response updateMonCapWH(@RequestBody Battinf inf) { |
| | | return service.updateMonCapWH(inf); |