wangchenghong před 3 roky
rodič
revize
3d2240b026

+ 2 - 2
src/main/java/com/persagy/apm/energy/report/centermiddleware/service/impl/ICenterMiddlewareWebServiceImp.java

@@ -233,12 +233,12 @@ public class ICenterMiddlewareWebServiceImp implements ICenterMiddlewareWebServi
                         if (null == vo.getData_value() || StringUtils.isEmpty(vo.getData_time())) {
                             continue;
                         }
-                        Double data = dataMap.get(DateUtils.str2Date(vo.getData_time(), DateUtils.SDF_SECOND));
+                        Double data = dataMap.get(DateUtils.str2Date(vo.getData_time(), DateUtils.SDFSECOND));
                         if (null == data) {
                             data = 0.0;
                         }
                         data = data + vo.getData_value();
-                        dataMap.put(DateUtils.str2Date(vo.getData_time(), DateUtils.SDF_SECOND), data);
+                        dataMap.put(DateUtils.str2Date(vo.getData_time(), DateUtils.SDFSECOND), data);
                     }
                 }
             }