| | |
| | | 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.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | |
| | | "空压机预警", |
| | | "大新预警", |
| | | "法液空合同执行度", |
| | | "盈德合同执行度" |
| | | "盈德合同执行度", |
| | | "BFG应急预案" |
| | | ) |
| | | ); |
| | | |
| | |
| | | "空压机跳机", |
| | | "大新浦项蒸汽压力", |
| | | "法液空运行优化指标", |
| | | "盈德运行优化指标" |
| | | "盈德运行优化指标", |
| | | "应急方案" |
| | | ) |
| | | ); |
| | | @GetMapping("/alarm-suggest/page") |
| | | @Operation(summary = "预警与建议信息") |
| | | public CommonResult<PageResult<StAlarmAndSuggestRespVO>> queryAlarmAndSuggestPage(@RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize) { |
| | | StAlarmAndSuggestPageReqVO reqVO = new StAlarmAndSuggestPageReqVO(); |
| | | reqVO.setPageNo(pageNo); |
| | | reqVO.setPageSize(pageSize); |
| | | public CommonResult<PageResult<StAlarmAndSuggestRespVO>> queryAlarmAndSuggestPage(@RequestBody StAlarmAndSuggestPageReqVO reqVO) { |
| | | reqVO.setTitle(titleList); |
| | | reqVO.setContentKey(contentKeyList); |
| | | PageResult<StAlarmAndSuggestRespVO> page = mcsApi.getAlarmAndSuggestPage(reqVO); |
| | |
| | | saveScheduleSuggest("转炉5W+8W煤气柜预警", result.get("LDG_1_warning_advice"), "LDG1_ALARM", predictTime, result.get("adjustValueLDG13W"), scheme.getAdjustRate(), scheme.getModelId(), scheme.getId()); |
| | | saveScheduleSuggest("宏发12W煤气柜预警", result.get("LDG_2_warning_advice"), "LDG2_ALARM", predictTime, result.get("adjustValueLDG12W"), scheme.getAdjustRate(), scheme.getModelId(), scheme.getId()); |
| | | saveScheduleSuggest("转炉特钢12W煤气柜预警", result.get("LDG_3_warning_advice"), "LDGt_ALARM", predictTime, result.get("adjustValueLDG12WT"), scheme.getAdjustRate(), scheme.getModelId(), scheme.getId()); |
| | | saveScheduleSuggest("BFG应急预案", result.get("BFG_Emergency_plan"), "BFG_EMERGENCY_PLAN", predictTime, 1, scheme.getAdjustRate(), scheme.getModelId(), scheme.getId()); |
| | | |
| | | // BFG应急预案 |
| | | if(!Objects.equals(result.get("BFG_Emergency_plan").toString(), "")){ |