| | |
| | | package com.gkhy.hazmat.admin.controller.web; |
| | | |
| | | |
| | | import com.gkhy.hazmat.common.annotation.Anonymous; |
| | | import com.gkhy.hazmat.common.annotation.RepeatSubmit; |
| | | import com.gkhy.hazmat.common.api.CommonResult; |
| | | import com.gkhy.hazmat.system.domain.HzWarning; |
| | |
| | | @ApiOperation(value = "预警列表(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10") |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "long", required = false, value = "公司id") |
| | | }) |
| | | @GetMapping("/list") |
| | | public CommonResult list(HzWarning warning){ |
| | |
| | | |
| | | @ApiOperation(value = "未处理预警数量") |
| | | @GetMapping("/warningCount") |
| | | public CommonResult warningCount(){ |
| | | return CommonResult.success(warningService.selectWarningCount()); |
| | | public CommonResult warningCount(Long companyId){ |
| | | return CommonResult.success(warningService.selectWarningCount(companyId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | |
| | | return CommonResult.success(warningService.deleteWarningById(warningId)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "大屏超期预警统计") |
| | | @GetMapping("/dailywarningCount") |
| | | public CommonResult dailywarningCount(){ |
| | | return CommonResult.success(warningService.dailywarningCount()); |
| | | } |
| | | |
| | | } |