Browse Source

增加采集站字段

dev-zs
yj 1 year ago
parent
commit
735de66f11
  1. 2
      device_gather/src/main/java/com/xr/device/common/utils/ValueFormatUtil.java
  2. 1
      pom.xml

2
device_gather/src/main/java/com/xr/device/common/utils/ValueFormatUtil.java

@ -35,7 +35,7 @@ public class ValueFormatUtil {
if((f == 0 || f>1)&& StringUtils.isNotEmpty(config.getJzVal())){
return config.getJzVal();
}else{
return String.format("%.3f", f*100)+"%";
return String.format("%.0f", f*100)+"%";
}
}

1
pom.xml

@ -19,6 +19,7 @@
<module>device_gateway</module>
<module>device_udpclent</module>
<module>device_udpserver</module>
<module>device_gather</module>
</modules>
<repositories>
<repository>

Loading…
Cancel
Save