Browse Source

发现在pom文件中,丢失项目,重新一起加入了

xieshengjie 3 years ago
parent
commit
96b32e5772

+ 4 - 1
realtime/meteorologicalcollection/src/main/java/com/gyee/meteorological/service/collection/CollectionService.java

@@ -1,5 +1,6 @@
 package com.gyee.meteorological.service.collection;
 
+import com.gyee.common.util.DateUtils;
 import com.gyee.common.util.RestTemplateUtil;
 import com.gyee.meteorological.init.CacheContext;
 import com.gyee.meteorological.model.auto.Coordinate;
@@ -38,6 +39,7 @@ public class CollectionService {
         List<Coordinate> coordinateList = CacheContext.coordinateList;
         //开始时间
         long startTime = System.currentTimeMillis();
+
         coordinateList.stream().forEach(c->{
             String[] models = model.split(",");
             Arrays.stream(models).forEach(m->{
@@ -50,6 +52,7 @@ public class CollectionService {
         //结束时间
         long endTime = System.currentTimeMillis();
         redisService.set("test",(endTime-startTime) + "毫秒");
-        log.info("运行时间为:"+ (endTime-startTime) + "毫秒");
+        log.info("运行时间为:"+ (endTime-startTime) + "毫秒,当前时间为"+DateUtils.parseLongToDate(endTime));
+        ;
     }
 }

+ 3 - 0
realtime/pom.xml

@@ -13,6 +13,9 @@
     <packaging>pom</packaging>
     <modules>
         <module>failurestatistics-server</module>
+        <module>meteorologicalcollection</module>
+        <module>datatraining-server</module>
+        <module>healthmodel-server</module>
     </modules>