Browse Source

#告警修改

zhongwei
yang_shj 10 months ago
parent
commit
9129a1bd10
  1. 9
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/service/impl/AlarmSaveServiceImpl.java
  2. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/ConstructionController.java

9
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/monitor/service/impl/AlarmSaveServiceImpl.java

@ -6,14 +6,18 @@ import com.hnac.hzims.alarm.config.entity.AlarmEntity;
import com.hnac.hzims.alarm.monitor.service.AlarmSaveService;
import com.hnac.hzims.alarm.show.service.AlarmService;
import com.hnac.hzims.alarm.config.vo.AlarmHandleMarkVo;
import com.hnac.hzims.operational.station.entity.StationEntity;
import com.hnac.hzims.operational.station.feign.IStationClient;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.CollectionUtil;
import org.springblade.core.tool.utils.ObjectUtil;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author ysj
@ -38,13 +42,12 @@ public class AlarmSaveServiceImpl implements AlarmSaveService {
*/
@Override
public Boolean save(List<AlarmEntity> alarms) {
/*// 步骤1.查询告警数据对应站点
// 步骤1.查询告警数据对应站点
R<List<StationEntity>> result = stationClient.querySatationByCodes(alarms.stream().map(AlarmEntity::getStationId).collect(Collectors.toList()));
if(!result.isSuccess() || CollectionUtil.isEmpty(result.getData())){
log.error("alarm query station is null : {}",alarms.stream().map(AlarmEntity::getAlarmId).collect(Collectors.toList()));
return false;
}*/
}
// 步骤2.遍历保存告警数据
alarms.forEach(alarm->{

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/controller/ConstructionController.java

@ -72,7 +72,7 @@ public class ConstructionController extends BladeController {
public R<IPage<ConstructionVo>> list(ConstructionVo construction, Query query) {
return R.data(service.pageCondition(Condition.getPage(query), construction));
}
@GetMapping("/preview")
@ApiOperationSupport(order = 6)
@ApiOperation(value = "检修施工日志预览", notes = "检修施工日志预览")

Loading…
Cancel
Save