| | |
| | | |
| | | @RestController |
| | | @RequestMapping("/DevalarmDataAction") |
| | | @Api(tags = "设备告警-实时告警") |
| | | public class DevalarmDataController { |
| | | @Api(tags = "告警管理-设备告警实时查询") |
| | | public class DevalarmDataController extends BaseController{ |
| | | |
| | | @Autowired |
| | | private DevalarmDataService service; |
| | | |
| | | //设备告警实时查询 |
| | | @ApiOperation(value = "设备告警实时查询") |
| | | @PostMapping("/serchByInfo") |
| | | @PostMapping("serchByInfo") |
| | | public Response serchByInfo(@RequestBody DevAlarmPar par){ |
| | | return service.serchByInfo(par); |
| | | } |
| | | |
| | | //设备告警确认告警 |
| | | @ApiOperation(value = "设备告警确认告警") |
| | | @GetMapping("/update") |
| | | @GetMapping("update") |
| | | public Response update(@RequestParam int num){ |
| | | return service.update(num); |
| | | } |
| | | |
| | | //设备告警取消告警 |
| | | @ApiOperation(value = "设备告警取消告警") |
| | | @GetMapping("/cancel") |
| | | @GetMapping("cancel") |
| | | public Response cancel(@RequestParam int num){ |
| | | return service.cancel(num); |
| | | } |
| | | |
| | | //设备告警删除告警 |
| | | @ApiOperation(value = "设备告警删除告警") |
| | | @GetMapping("/delete") |
| | | public Response delete(@RequestParam int num){ |
| | | return service.delete(num); |
| | | @GetMapping("delete") |
| | | public Response delete(@RequestParam int num) { |
| | | return service.delete(num); |
| | | } |
| | | |
| | | @GetMapping("searchNums") |
| | | @ApiOperation(value = "设备告警数查询") |
| | | public Response searchNums() { |
| | | return service.searchNums(); |
| | | } |
| | | |
| | | |
| | | } |