|
@@ -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));
|
|
|
+ ;
|
|
|
}
|
|
|
}
|