Kaynağa Gözat

修改点位bug

丁治程 1 ay önce
ebeveyn
işleme
f07485ce7d

+ 4 - 2
jeecg-module-interlock/src/main/java/org/jeecg/modules/iotedgeCollectData/service/impl/IotedgeCollectDataServiceImpl.java

@@ -111,10 +111,12 @@ public class IotedgeCollectDataServiceImpl extends ServiceImpl<IotedgeCollectDat
                 iotedgeTag.setName(item.get("devicePropertyName").toString()); // 点位名称
                 if(ObjectUtil.isNotNull(item.get("reportValue"))){
                     iotedgeTag.setValue(item.get("reportValue").toString()); // 点位值
-                    iotedgeTag.setInfo(item.get("devicePropertyName").toString()+"&"+item.get("reportValue").toString()); // 点位名称 & 点位值
+                    //iotedgeTag.setInfo(item.get("devicePropertyName").toString()+"&"+item.get("reportValue").toString()); // 点位名称 & 点位值
+                    iotedgeTag.setInfo(item.get("devicePropertyName").toString()); // 点位名称
                 }else {
                     iotedgeTag.setValue("0"); // 点位值
-                    iotedgeTag.setInfo(item.get("devicePropertyName").toString()+"&"+"0"); // 点位名称 & 点位值
+                    //iotedgeTag.setInfo(item.get("devicePropertyName").toString()+"&"+"0"); // 点位名称 & 点位值
+                    iotedgeTag.setInfo(item.get("devicePropertyName").toString()); // 点位名称
                 }
 
                 if (serviceMap.containsKey(item.get("deviceServiceName").toString())){