Sfoglia il codice sorgente

南沙温湿度导入温浴箱原始温度不显示bug修复

WuYi 1 giorno fa
parent
commit
de80016c91

+ 3 - 2
ibps-provider-root/modules/provider-business/src/main/java/com/lc/ibps/business/thirtyparty/service/impl/NanShaWsdServiceImpl.java

@@ -411,6 +411,7 @@ public class NanShaWsdServiceImpl extends WsdBaseServiceImpl implements NanShaWs
                 }
                 tempObj.put("range",tempRange);
                 tempObj.put("result",df.format(calculate));
+                tempObj.put("value",value);
                 tempObj.put("status",status);
                 tempObj.put("unit",type.equals("温度")?"℃":"%");
                 tempObj.put("label", time +"点"+ type);
@@ -479,8 +480,8 @@ public class NanShaWsdServiceImpl extends WsdBaseServiceImpl implements NanShaWs
                     calculate = value + shiDuXiuZheng;
                 }
                 tempObj.put("range",tempRange);
-                tempObj.put("value",df.format(calculate));
-                tempObj.put("result",value);
+                tempObj.put("value",value);
+                tempObj.put("result",df.format(calculate));
                 tempObj.put("status",status);
                 tempObj.put("unit",type.equals("温度")?"℃":"%");
                 tempObj.put("label", time +"点"+ type);