浏览代码

大同计算修复bug

xieshengjie 2 年之前
父节点
当前提交
0eb5c62077
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/gdsx-ghost/src/main/java/com/gyee/ghost/service/RealtimeService.java

+ 1 - 1
web/gdsx-ghost/src/main/java/com/gyee/ghost/service/RealtimeService.java

@@ -53,7 +53,7 @@ public class RealtimeService {
         Map<String, Map<String, Windturbinetestingpointai>> wtpAimap = CacheContext.wtpAimap;
 
         Date samedayZero = DateUtils.getSamedayZero();
-        Date currentDate = sdf.parse(DateUtils.toDate1(DateUtils.getCurrentDate()));
+        Date currentDate = sdf.parse(DateUtils.toDate(DateUtils.getCurrentDate()));
 //        Date befroeDate = DateUtils.addSeconds(currentDate, -1);
         Date befroeDate = DateUtils.addMinutes(currentDate,-5);