|
|
@ -8,13 +8,9 @@ import com.hnac.hzims.operational.alert.constants.AbnormalAlarmConstant; |
|
|
|
import com.hnac.hzims.operational.alert.entity.HistoryAbnormalAlarmEntity; |
|
|
|
import com.hnac.hzims.operational.alert.entity.HistoryAbnormalAlarmEntity; |
|
|
|
import com.hnac.hzims.operational.alert.mapper.HistoryAbnormalAlarmMapper; |
|
|
|
import com.hnac.hzims.operational.alert.mapper.HistoryAbnormalAlarmMapper; |
|
|
|
import com.hnac.hzims.operational.alert.service.HistoryAbnormalAlarmService; |
|
|
|
import com.hnac.hzims.operational.alert.service.HistoryAbnormalAlarmService; |
|
|
|
import com.hnac.hzims.operational.config.entity.StAlarmRecordEntity; |
|
|
|
|
|
|
|
import com.hnac.hzims.operational.config.vo.AlarmDataPageVo; |
|
|
|
import com.hnac.hzims.operational.config.vo.AlarmDataPageVo; |
|
|
|
import com.hnac.hzims.operational.config.vo.AlarmVo; |
|
|
|
import com.hnac.hzims.operational.config.vo.AlarmVo; |
|
|
|
import com.hnac.hzims.operational.config.vo.IntelligentAlarmCountVo; |
|
|
|
import com.hnac.hzims.operational.config.vo.IntelligentAlarmCountVo; |
|
|
|
import com.hnac.hzims.operational.config.vo.SoeBodyVo; |
|
|
|
|
|
|
|
import com.hnac.hzims.operational.main.vo.AreaGenerationMakeUpVo; |
|
|
|
|
|
|
|
import com.hnac.hzims.operational.main.vo.AreaMonthReportVo; |
|
|
|
|
|
|
|
import com.hnac.hzims.operational.maintenance.constants.HomePageConstant; |
|
|
|
import com.hnac.hzims.operational.maintenance.constants.HomePageConstant; |
|
|
|
import com.hnac.hzims.operational.station.entity.StationEntity; |
|
|
|
import com.hnac.hzims.operational.station.entity.StationEntity; |
|
|
|
import com.hnac.hzims.operational.station.service.IStationService; |
|
|
|
import com.hnac.hzims.operational.station.service.IStationService; |
|
|
@ -22,23 +18,20 @@ import com.hnac.hzims.operational.station.vo.HistoryAbnormalAlarmVo; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.ISoeClient; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.ISoeClient; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeData; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeData; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeQueryConditionByStation; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeQueryConditionByStation; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.sdk.core.response.HzPage; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.sdk.core.response.Result; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import net.logstash.logback.encoder.org.apache.commons.lang3.ObjectUtils; |
|
|
|
import net.logstash.logback.encoder.org.apache.commons.lang3.ObjectUtils; |
|
|
|
import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils; |
|
|
|
import net.logstash.logback.encoder.org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
import org.springblade.core.mp.support.BladePage; |
|
|
|
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
import org.springblade.core.tool.utils.CollectionUtil; |
|
|
|
import org.springblade.core.tool.utils.CollectionUtil; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.data.domain.Page; |
|
|
|
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
import java.lang.reflect.Field; |
|
|
|
import java.lang.reflect.Field; |
|
|
@ -223,7 +216,7 @@ public class HistoryAbnormalAlarmServiceImpl extends BaseServiceImpl<HistoryAbno |
|
|
|
// nacos中配置告警类型:"0-默认", "1-系统", "2-告警", "3-故障", "4-用户操作", "5-遥测越限", "6-遥信变位", "7-注册信息",
|
|
|
|
// nacos中配置告警类型:"0-默认", "1-系统", "2-告警", "3-故障", "4-用户操作", "5-遥测越限", "6-遥信变位", "7-注册信息",
|
|
|
|
// "8-信息提示", "9-设备巡检", "10-遥控操作", "11-遥测越限恢复","12-未定义","13-通讯中断","14-数据异常"
|
|
|
|
// "8-信息提示", "9-设备巡检", "10-遥控操作", "11-遥测越限恢复","12-未定义","13-通讯中断","14-数据异常"
|
|
|
|
condition.setTypes(Arrays.asList(types.split(","))); |
|
|
|
condition.setTypes(Arrays.asList(types.split(","))); |
|
|
|
R<BladePage<SoeData>> result = alarmClient.getByStationsAndTime(condition); |
|
|
|
Result<HzPage<SoeData>> result = alarmClient.getByStationsAndTime(condition); |
|
|
|
|
|
|
|
|
|
|
|
// 步骤3. TODO 过滤已处理告警
|
|
|
|
// 步骤3. TODO 过滤已处理告警
|
|
|
|
|
|
|
|
|
|
|
@ -272,7 +265,7 @@ public class HistoryAbnormalAlarmServiceImpl extends BaseServiceImpl<HistoryAbno |
|
|
|
// nacos中配置告警类型:"0-默认", "1-系统", "2-告警", "3-故障", "4-用户操作", "5-遥测越限", "6-遥信变位", "7-注册信息",
|
|
|
|
// nacos中配置告警类型:"0-默认", "1-系统", "2-告警", "3-故障", "4-用户操作", "5-遥测越限", "6-遥信变位", "7-注册信息",
|
|
|
|
// "8-信息提示", "9-设备巡检", "10-遥控操作", "11-遥测越限恢复","12-未定义","13-通讯中断","14-数据异常"
|
|
|
|
// "8-信息提示", "9-设备巡检", "10-遥控操作", "11-遥测越限恢复","12-未定义","13-通讯中断","14-数据异常"
|
|
|
|
condition.setTypes(type_list); |
|
|
|
condition.setTypes(type_list); |
|
|
|
R<BladePage<SoeData>> result = alarmClient.getByStationsAndTime(condition); |
|
|
|
Result<HzPage<SoeData>> result = alarmClient.getByStationsAndTime(condition); |
|
|
|
IPage<AlarmVo> page = Condition.getPage(query); |
|
|
|
IPage<AlarmVo> page = Condition.getPage(query); |
|
|
|
if(result.isSuccess() && ObjectUtil.isNotEmpty(result)){ |
|
|
|
if(result.isSuccess() && ObjectUtil.isNotEmpty(result)){ |
|
|
|
// 步骤3.TODO 过滤完成告警处理数据
|
|
|
|
// 步骤3.TODO 过滤完成告警处理数据
|
|
|
|