| | |
| | | import com.sinata.system.service.MwWarningRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | return R.ok(mwWarningRecordService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 解除预警 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation("解除预警") |
| | | @GetMapping("/relieve/{id}") |
| | | public R<?> relieve(@ApiParam(name = "id", value = "预警记录id", required = true) @PathVariable("id") Long id) { |
| | | mwWarningRecordService.relieve(id); |
| | | return R.ok(); |
| | | } |
| | | @ApiOperation("预警信息导出") |
| | | @PostMapping("/export") |
| | | public void export(@RequestBody MwWarningRecordQuery query) { |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | } |