| | |
| | | |
| | | return res; |
| | | } |
| | | @PutMapping |
| | | @PostMapping("update") |
| | | @ApiOperation(value = "更新电源") |
| | | public Response update(@RequestBody PowerInf powerInf){ |
| | | service.updateByPowerDeviceId(powerInf); |
| | | return new Response().set(1,true,"更新成功"); |
| | | } |
| | | @DeleteMapping |
| | | @PostMapping("delete") |
| | | @ApiOperation(value = "删除电源") |
| | | public Response delete(@RequestParam Integer powerDeviceId){ |
| | | service.deleteByPowerDeviceId(powerDeviceId); |
| | | return new Response().set(1,true,"删除成功"); |
| | | } |
| | | |
| | | @GetMapping("updateSwtichNum") |
| | | @ApiOperation(value = "更新开关路数") |
| | | public Response updateSwtichNum(@RequestParam int swtichNum,@RequestParam int powerId){ |
| | | service.updateSwtichNum(swtichNum,powerId); |
| | | return new Response().set(1,true,"更新成功"); |
| | | } |
| | | |
| | | |
| | | @GetMapping("getProvincesContainBatt") |
| | |
| | | }*/ |
| | | |
| | | @ApiOperation(value = "填写异常原因",notes = "传入字段 num,exceptionCause,exceptionCauseAnalysis") |
| | | @PutMapping("exceptionCause") |
| | | @PostMapping("exceptionCause") |
| | | public Response updateExceptionCause(@RequestBody PowerInf powerInf){ |
| | | return service.updateExceptionCause(powerInf); |
| | | } |
| | | |
| | | @ApiOperation(value = "取消异常原因", notes = "传入字段 num") |
| | | @PutMapping("cancelExceptionCause") |
| | | @PostMapping("cancelExceptionCause") |
| | | public Response updateCancelExceptionCause(@RequestParam int num) { |
| | | return service.updateCancelExceptionCause(num); |
| | | } |