Commit 31a1ff6f authored by caotao's avatar caotao

InfluxDButils 如果value为空则赋默认值

parent 594d208c
......@@ -47,6 +47,7 @@ public class InfluxDButils {
if ("time".equals(k)) {
continue;
} else {
v = String.valueOf(v).equals("")?0.0:v;
bean.setPropertyValue(k, v);
}
}
......@@ -90,7 +91,7 @@ public class InfluxDButils {
for (int j = 0; j < columns.size(); ++j) {
String k = columns.get(j);
Object v = values.get(i).get(j);
v = v.toString().equals("")?0.0:v;
v = String.valueOf(v).equals("")?0.0:v;
bean.setPropertyValue(k, v);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment