|
@@ -4,7 +4,10 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
|
import org.jeecg.modules.common.enums.EDeviceInformationType;
|
|
|
+import org.jeecg.modules.events.entity.LeanEvents;
|
|
|
import org.jeecg.modules.events.entity.LeanEventsHost;
|
|
|
+import org.jeecg.modules.events.service.ILeanEventsHostService;
|
|
|
+import org.jeecg.modules.events.service.ILeanEventsService;
|
|
|
import org.jeecg.modules.gatherData.entity.FpgStatiscsModelMongodb;
|
|
|
import org.jeecg.modules.leanEventWarn.entity.LeanEventWarnInfo;
|
|
|
import org.jeecg.modules.leanEventWarn.entity.LeanEventsHostConfig;
|
|
@@ -62,9 +65,15 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
@Autowired
|
|
|
ISystemVariableService systemVariableService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ ILeanEventsHostService leanEventsHostService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ ILeanEventsService leanEventsService;
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void openDeviceTriggerWarnInfo(FpgGatherData fpgGatherData) {
|
|
|
+ public void openDeviceTriggerWarnInfo(FpgGatherData fpgGatherData, LeanEventsHost leanEventsHost) {
|
|
|
LeanEventWarnInfo leanEventWarnInfo = new LeanEventWarnInfo();
|
|
|
leanEventWarnInfo.setDeviceRegionId(fpgGatherData.getDeviceRegionId());
|
|
|
leanEventWarnInfo.setDeviceInformationId(fpgGatherData.getDeviceInformationId());
|
|
@@ -83,8 +92,9 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
BigDecimal limitCurrent = new BigDecimal(systemVariable.getDefaultValue());
|
|
|
|
|
|
if (fpgGatherData.getRunCurrent().compareTo(limitCurrent) < 0){
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
// 上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("HOST_OPEN状态下,辅设备电流小于5A,触发告警!");
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.HOST_OPEN.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -94,7 +104,7 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void stopDeviceTriggerWarnInfo(FpgGatherData fpgGatherData) {
|
|
|
+ public void stopDeviceTriggerWarnInfo(FpgGatherData fpgGatherData, LeanEventsHost leanEventsHost) {
|
|
|
LeanEventWarnInfo leanEventWarnInfo = new LeanEventWarnInfo();
|
|
|
leanEventWarnInfo.setDeviceRegionId(fpgGatherData.getDeviceRegionId());
|
|
|
leanEventWarnInfo.setDeviceInformationId(fpgGatherData.getDeviceInformationId());
|
|
@@ -111,8 +121,9 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
}
|
|
|
BigDecimal limitCurrent = new BigDecimal(systemVariable.getDefaultValue());
|
|
|
if (fpgGatherData.getRunCurrent().compareTo(limitCurrent) > 0){
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
// 上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("HOST_CLOSE状态下,辅设备电流大于" + limitCurrent + "A,触发告警!");
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.HOST_STOP.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -122,7 +133,7 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void openFpgTriggerWarnInfo(FpgGatherData fpgGatherData) {
|
|
|
+ public void openFpgTriggerWarnInfo(FpgGatherData fpgGatherData, LeanEventsHost leanEventsHost) {
|
|
|
LeanEventWarnInfo leanEventWarnInfo = new LeanEventWarnInfo();
|
|
|
leanEventWarnInfo.setDeviceRegionId(fpgGatherData.getDeviceRegionId());
|
|
|
leanEventWarnInfo.setDeviceInformationId(fpgGatherData.getDeviceInformationId());
|
|
@@ -155,7 +166,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean topsIsExit = topsNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (topsIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) < 0){
|
|
|
// 采集到的数据电流小于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_OPEN状态下,尖时段采集到的数据电流小于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_OPEN.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -164,7 +176,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean peaksIsExit = peaksNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (peaksIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) < 0){
|
|
|
// 采集到的数据电流小于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_OPEN状态下,峰时段采集到的数据电流小于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_OPEN.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -173,7 +186,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean flatIsExit = flatNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (flatIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) < 0){
|
|
|
// 采集到的数据电流小于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_OPEN状态下,平时段采集到的数据电流小于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_OPEN.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -182,7 +196,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean valleysIsExit = valleysNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (valleysIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) < 0){
|
|
|
// 采集到的数据电流小于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_OPEN状态下,谷时段采集到的数据电流小于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_OPEN.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -212,7 +227,7 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void closeFpgTriggerWarnInfo(FpgGatherData fpgGatherData) {
|
|
|
+ public void closeFpgTriggerWarnInfo(FpgGatherData fpgGatherData, LeanEventsHost leanEventsHost) {
|
|
|
LeanEventWarnInfo leanEventWarnInfo = new LeanEventWarnInfo();
|
|
|
leanEventWarnInfo.setDeviceRegionId(fpgGatherData.getDeviceRegionId());
|
|
|
leanEventWarnInfo.setDeviceInformationId(fpgGatherData.getDeviceInformationId());
|
|
@@ -245,7 +260,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean topsIsExit = topsNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (topsIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) > 0){
|
|
|
// 采集到的数据电流大于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_CLOSE状态下,尖采集到的数据电流大于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_CLOSE.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -254,7 +270,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean peaksIsExit = peaksNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (peaksIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) > 0){
|
|
|
// 采集到的数据电流大于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_CLOSE状态下,峰采集到的数据电流大于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_CLOSE.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -263,7 +280,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean flatIsExit = flatNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (flatIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) > 0){
|
|
|
// 采集到的数据电流大于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_CLOSE状态下,平采集到的数据电流大于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_CLOSE.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -272,7 +290,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
boolean valleysIsExit = valleysNewPeaksAndValleysTimeConfigList.stream().anyMatch(a -> DateUtils.containsCreateTime(localDateTime, a.getStartTime(), a.getEndTime()));
|
|
|
if (valleysIsExit && fpgGatherData.getRunCurrent().compareTo(limitCurrent) > 0){
|
|
|
// 采集到的数据电流大于5A,上报告警信息
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("FPG_CLOSE状态下,谷采集到的数据电流大于" + limitCurrent + "A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_CLOSE.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -325,7 +344,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add).divide(new BigDecimal(60), 0, RoundingMode.CEILING);
|
|
|
if (topsIngTimeSum.intValue() > runTimeLimit){
|
|
|
// 尖——累加运行时长超过限制时长,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_ING_TIME,尖运行时长超过限制时长" + runTimeLimit + ",触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_ING_TIME.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -336,7 +356,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add).divide(new BigDecimal(60), 0, RoundingMode.CEILING);
|
|
|
if (peaksIngTimeSum.intValue() > runTimeLimit){
|
|
|
// 峰——累加运行时长超过限制时长,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_ING_TIME,峰运行时长超过限制时长" + runTimeLimit + ",触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_ING_TIME.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -347,7 +368,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add).divide(new BigDecimal(60), 0, RoundingMode.CEILING);
|
|
|
if (flatIngTimeSum.intValue() > runTimeLimit){
|
|
|
// 平——累加运行时长超过限制时长,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_ING_TIME,平运行时长超过限制时长" + runTimeLimit + ",触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_ING_TIME.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -358,7 +380,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add).divide(new BigDecimal(60), 0, RoundingMode.CEILING);
|
|
|
if (valleysIngTimeSum.intValue() > runTimeLimit){
|
|
|
// 谷——累加运行时长超过限制时长,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_ING_TIME,谷运行时长超过限制时长" + runTimeLimit + ",触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_ING_TIME.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -410,7 +433,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
BigDecimal topsPowerLimitSum = fpgStatiscsModelDataList.stream().map(FpgStatiscsModelMongodb::getTopsPower).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
if (topsPowerLimitSum.intValue() > powerLimit){
|
|
|
// 尖——累加累计功率超过功率限制,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_POWER_LIMIT,尖累计功率超过功率限制" + powerLimit +"A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_POWER_LIMIT.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -420,7 +444,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
BigDecimal peaksPowerLimitSum = fpgStatiscsModelDataList.stream().map(FpgStatiscsModelMongodb::getPeaksPower).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
if (peaksPowerLimitSum.intValue() > powerLimit){
|
|
|
// 峰——累加累计功率超过功率限制,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_POWER_LIMIT,峰累计功率超过功率限制" + powerLimit +"A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_POWER_LIMIT.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -430,7 +455,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
BigDecimal flatPowerLimitSum = fpgStatiscsModelDataList.stream().map(FpgStatiscsModelMongodb::getFlatPower).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
if (flatPowerLimitSum.intValue() > powerLimit){
|
|
|
// 平——累加累计功率超过功率限制,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_POWER_LIMIT,平累计功率超过功率限制" + powerLimit +"A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_POWER_LIMIT.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|
|
@@ -440,7 +466,8 @@ public class LeanEventWarnInfoServiceImpl extends ServiceImpl<LeanEventWarnInfoM
|
|
|
BigDecimal valleysPowerLimitSum = fpgStatiscsModelDataList.stream().map(FpgStatiscsModelMongodb::getValleysPower).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
if (valleysPowerLimitSum.intValue() > powerLimit){
|
|
|
// 谷——累加累计功率超过功率限制,触发告警
|
|
|
- leanEventWarnInfo.setDeviceWarnInfo("事件类型为FPG_POWER_LIMIT,谷累计功率超过功率限制" + powerLimit +"A,触发告警!");
|
|
|
+ LeanEvents leanEvents = leanEventsService.getById(leanEventsHost.getEventsId());
|
|
|
+ leanEventWarnInfo.setDeviceWarnInfo(leanEvents.getRemark());
|
|
|
leanEventWarnInfo.setWarnType(EDeviceInformationType.FPG_POWER_LIMIT.getCode());
|
|
|
leanEventWarnInfo.setDeviceWarnLevel("0");
|
|
|
// 更新或者新增逻辑处理
|