|
@@ -43,6 +43,10 @@ public class RedisDataService {
|
|
|
double value = Double.valueOf(vs.substring(1, vs.lastIndexOf("\"")));
|
|
|
|
|
|
point.setLastUpdateTime(new Date(time));
|
|
|
+ if (point.getLastUpdateTime() == null) {
|
|
|
+ log.error("数据日期格式错误!" + vls);
|
|
|
+ point.setLastUpdateTime(new Date());
|
|
|
+ }
|
|
|
if (point.getValue() != value ) {
|
|
|
point.setConsumed(false);
|
|
|
point.setValue(value);
|
|
@@ -106,8 +110,10 @@ public class RedisDataService {
|
|
|
point.setLastUpdateTime(new Date(time));
|
|
|
}
|
|
|
|
|
|
- if (point.getLastUpdateTime() == null)
|
|
|
- point.setLastUpdateTime(new Date(time));
|
|
|
+// if (point.getLastUpdateTime() == null)
|
|
|
+// point.setLastUpdateTime(new Date(time));
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
} catch (Exception e){
|