| | |
| | | import com.iailab.module.data.point.common.PointDataTypeEnum; |
| | | import com.iailab.module.data.point.dto.DaPointDTO; |
| | | import com.iailab.module.data.point.service.DaPointService; |
| | | import com.iailab.module.data.channel.http.collector.HttpCollectorForZxzk; |
| | | import com.iailab.module.data.influxdb.pojo.InfluxPointValuePOJO; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Autowired |
| | | private OpcDACollector opcDACollector; |
| | | |
| | | @Resource |
| | | private HttpCollectorForZxzk httpCollectorForZxzk; |
| | | |
| | | @Resource |
| | | private DaPointService daPointService; |
| | |
| | | } |
| | | if (!CollectionUtils.isEmpty(kioTagIds)) { |
| | | tagValues.putAll(kingIOCollector.getTagValues(kioTagIds)); |
| | | } |
| | | if (!CollectionUtils.isEmpty(httpTagZxzk)) { |
| | | tagValues.putAll(httpCollectorForZxzk.getTagValues(httpTagZxzk)); |
| | | |
| | | } |
| | | this.toCommonResult(collectTime, dtos, tagValues, dataMap, result); |
| | | log.info("测量点处理结束"); |
| | |
| | | } else if (DataSourceType.KIO.getCode().equals(item.getSourceType())) { |
| | | value = kingIOCollector.getTagValue(item.getSourceId(), item.getTagNo()); |
| | | } else if (DataSourceType.HTTP.getCode().equals(item.getSourceType())) { |
| | | if (CommonConstant.HTTP_API_ZXZK_IH.equals(item.getSourceName())) { |
| | | value = httpCollectorForZxzk.getTagValue(item.getSourceId(), item.getTagNo()); |
| | | } |
| | | |
| | | } else { |
| | | log.info("没有匹配的TagNo=" + item.getTagNo()); |
| | | } |