| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | |
| | | private final List<String> titleList = new ArrayList<>( |
| | | Arrays.asList( |
| | | "高炉煤气预警", |
| | | "高炉煤气放散预警", |
| | | "高炉煤气预测放散预警", |
| | | "焦炉煤气预警", |
| | | "转炉5W+8W煤气柜预警", |
| | | "宏发12W煤气柜预警", |
| | |
| | | "空压机预警", |
| | | "大新预警", |
| | | "法液空合同执行度", |
| | | "盈德合同执行度" |
| | | "盈德合同执行度", |
| | | "BFG应急预案" |
| | | ) |
| | | ); |
| | | |
| | |
| | | "空压机跳机", |
| | | "大新浦项蒸汽压力", |
| | | "法液空运行优化指标", |
| | | "盈德运行优化指标" |
| | | "盈德运行优化指标", |
| | | "应急方案" |
| | | ) |
| | | ); |
| | | |
| | | private final static int PAGE_NO = 1; |
| | | private final static int PAGE_SIZE = 10; |
| | | @GetMapping("/alarm-suggest/page") |
| | | @PostMapping("/alarm-suggest/page") |
| | | @Operation(summary = "预警与建议信息") |
| | | public CommonResult<PageResult<StAlarmAndSuggestRespVO>> queryAlarmAndSuggestPage() { |
| | | StAlarmAndSuggestPageReqVO reqVO = new StAlarmAndSuggestPageReqVO(); |
| | | reqVO.setPageNo(PAGE_NO); |
| | | reqVO.setPageSize(PAGE_SIZE); |
| | | public CommonResult<PageResult<StAlarmAndSuggestRespVO>> queryAlarmAndSuggestPage(@RequestBody StAlarmAndSuggestPageReqVO reqVO) { |
| | | reqVO.setTitle(titleList); |
| | | reqVO.setContentKey(contentKeyList); |
| | | PageResult<StAlarmAndSuggestRespVO> page = mcsApi.getAlarmAndSuggestPage(reqVO); |