Commit 10adf34f authored by tangwei's avatar tangwei

分析预警增加预警信息

parent d3b72008
......@@ -10,6 +10,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import com.yeejoin.amos.boot.module.jxiop.api.dto.BizMessage;
import com.yeejoin.amos.boot.module.jxiop.api.dto.RiskBizInfoVo;
import com.yeejoin.amos.boot.module.jxiop.api.dto.RiskDynamicDetailsVo;
import com.yeejoin.amos.boot.module.jxiop.api.dto.TableContentVo;
import com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic;
import com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper;
import com.yeejoin.amos.boot.module.jxiop.biz.Enum.WarningNameEnum;
......@@ -1162,6 +1163,33 @@ public class HealthStatusIndicatorServiceImpl {
List<RiskDynamicDetailsVo> detailsVos = new ArrayList<>();
RiskDynamicDetailsVo dynamicDetailsVo = new RiskDynamicDetailsVo();
dynamicDetailsVo.setTabName("预警详情");
List<TableContentVo> tabContent =new ArrayList<>();
TableContentVo tableContentVo1=new TableContentVo("1", "场站名称", idxBizPvWarningRecord.getStation(), "text");
TableContentVo tableContentVo3=new TableContentVo("2", "子阵", idxBizPvWarningRecord.getSubarray(), "text");
TableContentVo tableContentVo2=new TableContentVo("3", "设备名称", idxBizPvWarningRecord.getEquipmentName(), "text");
TableContentVo tableContentVo4=new TableContentVo("1", "分析变量", idxBizPvWarningRecord.getPointName(), "text");
TableContentVo tableContentVo5=new TableContentVo("1", "健康状态指数", idxBizPvWarningRecord.getHealthIndex(), "text");
TableContentVo tableContentVo6=new TableContentVo("1", "健康等级", idxBizPvWarningRecord.getHealthLevel(), "text");
TableContentVo tableContentVo7=new TableContentVo("1", "预警周期", idxBizPvWarningRecord.getWarningPeriod(), "text");
TableContentVo tableContentVo8=new TableContentVo("1", "预警时间", idxBizPvWarningRecord.getRecDate(), "text");
TableContentVo tableContentVo10=new TableContentVo("1", "预警等级", idxBizPvWarningRecord.getWarningName(), "text");
TableContentVo tableContentVo11=new TableContentVo("1", "预警原因", idxBizPvWarningRecord.getContent(), "text");
tabContent.add(tableContentVo1);
tabContent.add(tableContentVo2);
tabContent.add(tableContentVo3);
tabContent.add(tableContentVo4);
tabContent.add(tableContentVo5);
tabContent.add(tableContentVo6);
tabContent.add(tableContentVo7);
tabContent.add(tableContentVo8);
tabContent.add(tableContentVo10);
tabContent.add(tableContentVo11);
dynamicDetailsVo.setTabContent(tabContent);
detailsVos.add(dynamicDetailsVo);
riskBizInfoVo.setDynamicDetails(detailsVos);
bizMessage.setBizInfo(riskBizInfoVo);
......@@ -1198,6 +1226,28 @@ public class HealthStatusIndicatorServiceImpl {
List<RiskDynamicDetailsVo> detailsVos = new ArrayList<>();
RiskDynamicDetailsVo dynamicDetailsVo = new RiskDynamicDetailsVo();
dynamicDetailsVo.setTabName("预警详情");
List<TableContentVo> tabContent =new ArrayList<>();
TableContentVo tableContentVo1=new TableContentVo("1", "场站名称", idxBizFanWarningRecord.getStation(), "text");
TableContentVo tableContentVo2=new TableContentVo("2", "设备名称", idxBizFanWarningRecord.getEquipmentName(), "text");
TableContentVo tableContentVo3=new TableContentVo("3", "设备系统", idxBizFanWarningRecord.getSubSystem(), "text");
TableContentVo tableContentVo4=new TableContentVo("1", "分析变量", idxBizFanWarningRecord.getPointName(), "text");
TableContentVo tableContentVo5=new TableContentVo("1", "健康状态指数", idxBizFanWarningRecord.getHealthIndex(), "text");
TableContentVo tableContentVo6=new TableContentVo("1", "健康等级", idxBizFanWarningRecord.getHealthLevel(), "text");
TableContentVo tableContentVo7=new TableContentVo("1", "预警周期", idxBizFanWarningRecord.getWarningPeriod(), "text");
TableContentVo tableContentVo8=new TableContentVo("1", "预警时间", idxBizFanWarningRecord.getRecDate(), "text");
TableContentVo tableContentVo10=new TableContentVo("1", "预警等级", idxBizFanWarningRecord.getWarningName(), "text");
TableContentVo tableContentVo11=new TableContentVo("1", "预警原因", idxBizFanWarningRecord.getContent(), "text");
tabContent.add(tableContentVo1);
tabContent.add(tableContentVo2);
tabContent.add(tableContentVo3);
tabContent.add(tableContentVo4);
tabContent.add(tableContentVo5);
tabContent.add(tableContentVo6);
tabContent.add(tableContentVo7);
tabContent.add(tableContentVo8);
tabContent.add(tableContentVo10);
tabContent.add(tableContentVo11);
dynamicDetailsVo.setTabContent(tabContent);
detailsVos.add(dynamicDetailsVo);
riskBizInfoVo.setDynamicDetails(detailsVos);
bizMessage.setBizInfo(riskBizInfoVo);
......
......@@ -12,4 +12,14 @@ public class TableContentVo {
private String label;
private Object value;
private String type;
public TableContentVo(String key, String label, Object value, String type) {
this.key = key;
this.label = label;
this.value = value;
this.type = type;
}
public TableContentVo() {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment