|
@@ -57,7 +57,7 @@ public class EarlyWarningController {
|
|
|
|
|
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
@ApiOperation("分页查询预警列表")
|
|
@ApiOperation("分页查询预警列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:query')")
|
|
|
public AjaxResult getWarningList(
|
|
public AjaxResult getWarningList(
|
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@@ -72,7 +72,7 @@ public class EarlyWarningController {
|
|
|
|
|
|
|
|
@GetMapping("/todo/list")
|
|
@GetMapping("/todo/list")
|
|
|
@ApiOperation("待办预警列表")
|
|
@ApiOperation("待办预警列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:query')")
|
|
|
public AjaxResult getTodoList(
|
|
public AjaxResult getTodoList(
|
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@@ -209,8 +209,8 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
|
|
|
|
|
@PostMapping("/misreport")
|
|
@PostMapping("/misreport")
|
|
|
@ApiOperation("确认误报并清除预警")
|
|
@ApiOperation("确认误报并清除预警")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:handle')")
|
|
|
|
|
- public AjaxResult misreportWarning(@RequestParam String warningId, @RequestParam String reason) {
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:audit')")
|
|
|
|
|
+ public AjaxResult misreportWarning(@RequestParam("warningId") String warningId, @RequestParam("reason") String reason) {
|
|
|
boolean result = earlyWarningService.misreportWarning(warningId, reason);
|
|
boolean result = earlyWarningService.misreportWarning(warningId, reason);
|
|
|
return result ? AjaxResult.success("误报已清除") : AjaxResult.error("误报处理失败");
|
|
return result ? AjaxResult.success("误报已清除") : AjaxResult.error("误报处理失败");
|
|
|
}
|
|
}
|
|
@@ -233,8 +233,8 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
|
|
|
|
|
@PostMapping("/clear")
|
|
@PostMapping("/clear")
|
|
|
@ApiOperation("清除预警")
|
|
@ApiOperation("清除预警")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:handle')")
|
|
|
|
|
- public AjaxResult clearWarning(@RequestParam String warningId, @RequestParam String clearRemark) {
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:audit')")
|
|
|
|
|
+ public AjaxResult clearWarning(@RequestParam("warningId") String warningId, @RequestParam("clearRemark") String clearRemark) {
|
|
|
boolean result = earlyWarningService.clearWarning(warningId, clearRemark);
|
|
boolean result = earlyWarningService.clearWarning(warningId, clearRemark);
|
|
|
return result ? AjaxResult.success("预警已清除") : AjaxResult.error("预警清除失败");
|
|
return result ? AjaxResult.success("预警已清除") : AjaxResult.error("预警清除失败");
|
|
|
}
|
|
}
|
|
@@ -254,10 +254,10 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
@PostMapping("/resolve")
|
|
@PostMapping("/resolve")
|
|
|
@ApiOperation("解除预警")
|
|
@ApiOperation("解除预警")
|
|
|
@Log(title = "解除预警", businessType = BusinessType.UPDATE)
|
|
@Log(title = "解除预警", businessType = BusinessType.UPDATE)
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:handle')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:audit')")
|
|
|
public AjaxResult resolveWarning(
|
|
public AjaxResult resolveWarning(
|
|
|
- @ApiParam("预警ID") @RequestParam String warningId,
|
|
|
|
|
- @ApiParam("处置说明") @RequestParam String disposalContent) {
|
|
|
|
|
|
|
+ @ApiParam("预警ID") @RequestParam("warningId") String warningId,
|
|
|
|
|
+ @ApiParam("处置说明") @RequestParam("disposalContent") String disposalContent) {
|
|
|
boolean result = earlyWarningService.resolveWarning(warningId, disposalContent);
|
|
boolean result = earlyWarningService.resolveWarning(warningId, disposalContent);
|
|
|
return result ? AjaxResult.success("解除成功") : AjaxResult.error("解除失败");
|
|
return result ? AjaxResult.success("解除成功") : AjaxResult.error("解除失败");
|
|
|
}
|
|
}
|
|
@@ -265,10 +265,10 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
@PostMapping("/return")
|
|
@PostMapping("/return")
|
|
|
@ApiOperation("退回重办")
|
|
@ApiOperation("退回重办")
|
|
|
@Log(title = "退回重办", businessType = BusinessType.UPDATE)
|
|
@Log(title = "退回重办", businessType = BusinessType.UPDATE)
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:handle')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:audit')")
|
|
|
public AjaxResult returnWarning(
|
|
public AjaxResult returnWarning(
|
|
|
- @ApiParam("预警ID") @RequestParam String warningId,
|
|
|
|
|
- @ApiParam("退回说明") @RequestParam String disposalContent) {
|
|
|
|
|
|
|
+ @ApiParam("预警ID") @RequestParam("warningId") String warningId,
|
|
|
|
|
+ @ApiParam("退回说明") @RequestParam("disposalContent") String disposalContent) {
|
|
|
boolean result = earlyWarningService.returnWarning(warningId, disposalContent);
|
|
boolean result = earlyWarningService.returnWarning(warningId, disposalContent);
|
|
|
return result ? AjaxResult.success("退回成功") : AjaxResult.error("退回失败");
|
|
return result ? AjaxResult.success("退回成功") : AjaxResult.error("退回失败");
|
|
|
}
|
|
}
|
|
@@ -290,7 +290,7 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PostMapping("/notifications/{todoId}/read")
|
|
@PostMapping("/notifications/{todoId}/read")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:query')")
|
|
|
public AjaxResult readNotification(@PathVariable String todoId) {
|
|
public AjaxResult readNotification(@PathVariable String todoId) {
|
|
|
return earlyWarningService.readNotification(todoId) ? AjaxResult.success() : AjaxResult.error("通知不存在或无权访问");
|
|
return earlyWarningService.readNotification(todoId) ? AjaxResult.success() : AjaxResult.error("通知不存在或无权访问");
|
|
|
}
|
|
}
|
|
@@ -354,7 +354,7 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
|
|
|
|
|
@GetMapping("/search")
|
|
@GetMapping("/search")
|
|
|
@ApiOperation("综合搜索预警信息")
|
|
@ApiOperation("综合搜索预警信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:query')")
|
|
|
public AjaxResult searchWarnings(
|
|
public AjaxResult searchWarnings(
|
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@@ -388,7 +388,7 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
|
|
|
|
|
@GetMapping("/processing/list")
|
|
@GetMapping("/processing/list")
|
|
|
@ApiOperation("获取处置过程跟踪 - 进行中的预警")
|
|
@ApiOperation("获取处置过程跟踪 - 进行中的预警")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:query')")
|
|
|
public AjaxResult getProcessingWarnings(
|
|
public AjaxResult getProcessingWarnings(
|
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@@ -401,7 +401,7 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
|
|
|
|
|
@GetMapping("/completed/list")
|
|
@GetMapping("/completed/list")
|
|
|
@ApiOperation("获取处置过程跟踪 - 已完成的预警")
|
|
@ApiOperation("获取处置过程跟踪 - 已完成的预警")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:query')")
|
|
|
public AjaxResult getCompletedWarnings(
|
|
public AjaxResult getCompletedWarnings(
|
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@@ -568,7 +568,7 @@ List<String> alarmIds = alarmIdsJson != null && !alarmIdsJson.isEmpty()
|
|
|
|
|
|
|
|
@GetMapping("/archive/list")
|
|
@GetMapping("/archive/list")
|
|
|
@ApiOperation("获取归档列表")
|
|
@ApiOperation("获取归档列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('warning:warning:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('warning:warning:query')")
|
|
|
public AjaxResult getArchiveList(
|
|
public AjaxResult getArchiveList(
|
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
@ApiParam("页码") @RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|
|
@ApiParam("每页数量") @RequestParam(defaultValue = "10") Integer pageSize,
|