|
@@ -104,6 +104,12 @@ public class AlarmDetailsController {
|
|
|
@RequestMapping(value="suspendedById" , method = RequestMethod.POST)
|
|
|
@ApiOperation(value = "挂起报警信息")
|
|
|
public AjaxMessage<Integer> suspendedById( @ApiParam(value = "报警详情信息id") @RequestParam Integer id){
|
|
|
- return new AjaxMessage<>(ResultStatus.OK, alarmDetailsService.suspendedById(id));
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK, alarmDetailsService.suspendedById(id,0));
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping(value="renewById" , method = RequestMethod.POST)
|
|
|
+ @ApiOperation(value = "恢复挂起报警信息")
|
|
|
+ public AjaxMessage<Integer> renewById( @ApiParam(value = "报警详情信息id") @RequestParam Integer id){
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK, alarmDetailsService.suspendedById(id,1));
|
|
|
}
|
|
|
}
|