Browse Source

#天气修改

zhongwei
yang_shj 1 year ago
parent
commit
b1c16c577c
  1. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/service/impl/AbnormalAlarmServiceImpl.java
  2. 3
      hzims-service/weather/src/main/java/com/hnac/hzims/weather/mapper/StationMapper.java

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/service/impl/AbnormalAlarmServiceImpl.java

@ -175,7 +175,10 @@ public class AbnormalAlarmServiceImpl extends BaseServiceImpl<AbnormalAlarmMappe
this.historyAbnormalAlarmService.save(entity); this.historyAbnormalAlarmService.save(entity);
// 相同告警只允许添加一次,发送一次消息 // 相同告警只允许添加一次,发送一次消息
explainSet.add(item.getSoeExplain()); explainSet.add(item.getSoeExplain());
// 发送消息
this.sendAlarmMessage(Collections.singletonList(entity),stations); this.sendAlarmMessage(Collections.singletonList(entity),stations);
// 推送短信: 只推送拥有项目经理角色用户
}); });
} }

3
hzims-service/weather/src/main/java/com/hnac/hzims/weather/mapper/StationMapper.java

@ -1,11 +1,12 @@
package com.hnac.hzims.weather.mapper; package com.hnac.hzims.weather.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hnac.hzims.hzimsweather.entity.VStationEntity; import com.hnac.hzims.hzimsweather.entity.VStationEntity;
import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper;
/** /**
* @author hx * @author hx
*/ */
public interface StationMapper extends UserDataScopeBaseMapper<VStationEntity> { public interface StationMapper extends BaseMapper<VStationEntity> {
} }

Loading…
Cancel
Save