소스 검색

大同计算修复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;
         Map<String, Map<String, Windturbinetestingpointai>> wtpAimap = CacheContext.wtpAimap;
 
 
         Date samedayZero = DateUtils.getSamedayZero();
         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.addSeconds(currentDate, -1);
         Date befroeDate = DateUtils.addMinutes(currentDate,-5);
         Date befroeDate = DateUtils.addMinutes(currentDate,-5);