| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | mcsApi.useSuggest(reqVO); |
| | | return success( true); |
| | | } |
| | | |
| | | @PostMapping(value = "/schedule-suggest/operation_record/save", consumes = MediaType.APPLICATION_JSON_VALUE) |
| | | @Operation(summary = "保存建议操作记录") |
| | | public CommonResult<Boolean> saveSuggestOperationRecord(@RequestBody SuggestOperationRecordReqVO reqVO){ |
| | | mcsApi.saveSuggestOperationRecord(reqVO); |
| | | return success( true); |
| | | } |
| | | |
| | | @PostMapping("/schedule-suggest/ignore-suggest") |
| | | @Operation(summary = "取消采纳建议") |
| | | public CommonResult<Boolean> ignoreSuggest(@RequestBody StAlarmAndSuggestReqVO reqVO){ |
| | | mcsApi.ignoreSuggest(reqVO); |
| | | return success( true); |
| | | } |
| | | |
| | | @GetMapping("/suggest/snapshot/getAllChartData") |
| | | @Operation(summary = "根据建议id获取建议快照全部图表数据") |
| | | public CommonResult<List<StSuggestSnapshotRecordRespVO>> getSuggestSnapshotAllChartData(@RequestParam("suggestId") String suggestId){ |
| | | return success( mcsApi.getSuggestSnapshotAllChartData(suggestId)); |
| | | } |
| | | } |