| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags = "电源告警-实时告警") |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "告警管理-电源实时告警") |
| | | @RestController |
| | | @RequestMapping("/PowerAlarmAction") |
| | | @RequestMapping("PowerAlarmAction") |
| | | public class PwrdevAlarmController { |
| | | |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | //电源实时确认告警 |
| | | @ApiOperation(value = "电源实时确认告警") |
| | | @ApiOperation(value = "电源实时确认告警--通讯电源") |
| | | @GetMapping("/confirm") |
| | | public Response confirm(@RequestParam int num){ |
| | | return service.confirm(num); |
| | | } |
| | | //电源实时取消告警 |
| | | @ApiOperation(value = "电源实时取消告警") |
| | | @ApiOperation(value = "电源实时取消告警--通讯电源") |
| | | @GetMapping("/cancle") |
| | | public Response cancle(@RequestParam int num){ |
| | | return service.cancle(num); |
| | | } |
| | | //电源实时删除告警 |
| | | @ApiOperation(value = "电源实时删除告警") |
| | | @ApiOperation(value = "电源实时删除告警--通讯电源") |
| | | @GetMapping("/delete") |
| | | public Response delete(@RequestParam int num){ |
| | | return service.delete(num); |
| | | } |
| | | |
| | | //电源实时删除告警批量 |
| | | @ApiOperation(value = "电源实时删除告警批量--通讯电源") |
| | | @PostMapping("/deletepro") |
| | | public Response deletepro(@RequestBody List<Integer> list){ |
| | | return service.deletepro(list); |
| | | } |
| | | |
| | | //电源告警个数 |
| | |
| | | public Response getAlarmNum(){ |
| | | return service.getAlarmNum(); |
| | | } |
| | | |
| | | //通信电源告警--认证送检-配电柜专用 |
| | | @ApiOperation(value = "通信电源告警查询",notes="almTypes,almLevels,page,stationName1,stationName2,stationName3,stationName5,usrId,almSource") |
| | | @PostMapping("/getAllPage2") |
| | | public Response getAllPage2(@RequestBody PwrdevAlarm pwrdevAlarm){ |
| | | return service.getAllPage2(pwrdevAlarm); |
| | | } |
| | | } |