From 0ca88f2ac69e68db41b638c7faebc75d191fca6a Mon Sep 17 00:00:00 2001 From: yang_shj Date: Tue, 21 Mar 2023 11:10:35 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=91=8A=E8=AD=A6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alert/constants/AbnormalAlarmConstant.java | 3 ++- .../hzims/operational/alert/vo/HandleQueryVo.java | 2 +- .../hzims/monitor/dto/FdpMonitorBindingDTO.java | 1 - .../alert/mapper/HistoryAbnormalAlarmMapper.java | 2 +- .../alert/mapper/HistoryAbnormalAlarmMapper.xml | 2 +- .../alert/service/HistoryAbnormalAlarmService.java | 2 +- .../service/impl/AbnormalAlarmServiceImpl.java | 22 ++++++++++++++-------- .../impl/HistoryAbnormalAlarmServiceImpl.java | 10 +++++++--- .../config/scheduled/StAlamRecordTask.java | 9 +++++---- .../operational/station/mapper/StationMapper.xml | 2 +- .../station/service/impl/StationServiceImpl.java | 10 +++++----- 11 files changed, 38 insertions(+), 27 deletions(-) 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