diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/constants/AbnormalAlarmConstant.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/constants/AbnormalAlarmConstant.java index de34866..2238cd2 100644 --- a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/constants/AbnormalAlarmConstant.java +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/constants/AbnormalAlarmConstant.java @@ -10,10 +10,11 @@ public interface AbnormalAlarmConstant { List TYPE_LIST = Arrays.asList("13","14"); + /**通讯恢复*/ String ABNORMAL_STATUS = "1"; String TYPE_NAMES[] = {"默认", "系统", "告警", "故障", "用户操作", "遥测越限", "遥信变位", "注册信息", "信息提示", "设备巡检", "遥控操作", "遥测越限恢复","未定义","通讯中断","数据异常"}; /**处理、延后、误报*/ - List HANDLE_WAY = Arrays.asList(0L,1L,2L); + List HANDLE_WAY = Arrays.asList(1L,2L,3L,4l); } diff --git a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/vo/HandleQueryVo.java b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/vo/HandleQueryVo.java index 6d25b47..75360f6 100644 --- a/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/vo/HandleQueryVo.java +++ b/hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/alert/vo/HandleQueryVo.java @@ -22,6 +22,6 @@ public class HandleQueryVo { @ApiModelProperty("结束时间") private Date endTime; - @ApiModelProperty("处理类型:0-处理 1-延后 2-误报") + @ApiModelProperty("处理类型:1-延后 2-误报 3-缺陷 4-检修") private Long handleWay; } diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/dto/FdpMonitorBindingDTO.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/dto/FdpMonitorBindingDTO.java index 7194ec3..f21e237 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/dto/FdpMonitorBindingDTO.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/dto/FdpMonitorBindingDTO.java @@ -1,7 +1,6 @@ package com.hnac.hzims.monitor.dto; import com.hnac.hzims.fdp.entity.FdpMonitorEntity; -import com.hnac.hzinfo.dataconfig.entity.AnalyzeInstanceField; import com.hnac.hzinfo.datasearch.analyse.vo.AnalyzeInstanceFieldVO; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java index d83996f..c25c7bd 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java @@ -16,7 +16,7 @@ import java.util.List; */ public interface HistoryAbnormalAlarmMapper extends UserDataScopeBaseMapper { - HistoryAbnormalAlarmEntity getHistoryAbnormalAlarm(@Param("stationId") String stationId,@Param("type") String type,@Param("startTime") Date ts); + List getHistoryAbnormalAlarm(@Param("stationId") String stationId,@Param("type") String type); List selectPageList(IPage page, String type, List stations); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml index 8d2cbc8..77cf5de 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml @@ -6,7 +6,7 @@ select * from hzims_history_abnormal_alarm where station_id = #{stationId} and type = #{type} - and start_time = #{startTime} + and status = 0 - select REF_DEPT from hzims_station where IS_DELETED = 0 diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java index faaee13..54809c4 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java @@ -20,10 +20,10 @@ import com.hnac.hzims.operational.station.vo.HzimsStationCountVo; import com.hnac.hzims.operational.station.vo.StationAndDeptVo; import com.hnac.hzims.operational.station.vo.StationVO; import com.hnac.hzims.operational.station.wrapper.StationWrapper; -import com.hnac.hzinfo.sdk.core.response.Result; +/*import com.hnac.hzinfo.sdk.core.response.Result; import com.hnac.hzinfo.sdk.v5.project.ProjectClient; import com.hnac.hzinfo.sdk.v5.project.dto.ProjectDTO; -import com.hnac.hzinfo.sdk.v5.project.vo.ProjectVO; +import com.hnac.hzinfo.sdk.v5.project.vo.ProjectVO;*/ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; @@ -62,7 +62,7 @@ public class StationServiceImpl extends BaseServiceImpl