소스 검색

导出设备增加采集标签字段

欧阳劲驰 2 주 전
부모
커밋
83757288bc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom-gateway-core/src/main/java/com/shkpr/service/customgateway/core/components/DeviceRegistry.java

+ 1 - 1
custom-gateway-core/src/main/java/com/shkpr/service/customgateway/core/components/DeviceRegistry.java

@@ -326,7 +326,7 @@ public class DeviceRegistry {
             //设置标签
             deviceExcel.setTags(
                     device.getTags().stream()
-                            .map(it -> fieldMap.get(it.getTag()))
+                            .map(DeviceTag::getTag)
                             .collect(Collectors.joining("/"))
             );
             return deviceExcel;