|
@@ -3,6 +3,8 @@ package com.gyee.generation.task.thread;
|
|
|
import com.gyee.common.contant.ContantXk;
|
|
|
import com.gyee.common.model.PointData;
|
|
|
import com.gyee.common.model.StringUtils;
|
|
|
+import com.gyee.generation.config.feign.RemoteServiceBuilder;
|
|
|
+import com.gyee.generation.config.feign.TsDoubleData;
|
|
|
import com.gyee.generation.init.CacheContext;
|
|
|
import com.gyee.generation.model.auto.ProBasicEquipment;
|
|
|
import com.gyee.generation.model.auto.ProBasicEquipmentPoint;
|
|
@@ -14,6 +16,7 @@ import com.gyee.generation.util.statisticcs.Initial;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.io.Serializable;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.Callable;
|
|
@@ -38,10 +41,11 @@ public class EquipmentInfo1ThreadPool implements Callable<String>, Serializable
|
|
|
private List<ProEconEquipmentInfoDay1> dayls;
|
|
|
private IEdosUtil edosUtil;
|
|
|
|
|
|
+ private RemoteServiceBuilder remoteService;
|
|
|
|
|
|
public EquipmentInfo1ThreadPool(Object tasks, ProBasicEquipment wt, Map<String, ProEconEquipmentInfoDay1> pep1map,
|
|
|
Date recordDate, Date end, Date begin, List<ProEconEquipmentInfoDay1> dayls,
|
|
|
- IEdosUtil edosUtil
|
|
|
+ IEdosUtil edosUtil, RemoteServiceBuilder remoteService
|
|
|
) {
|
|
|
|
|
|
this.threadPoolTaskData = tasks;
|
|
@@ -52,6 +56,7 @@ public class EquipmentInfo1ThreadPool implements Callable<String>, Serializable
|
|
|
this.begin = begin;
|
|
|
this.dayls = dayls;
|
|
|
this.edosUtil = edosUtil;
|
|
|
+ this.remoteService = remoteService;
|
|
|
}
|
|
|
|
|
|
public synchronized String call() throws Exception {
|
|
@@ -121,6 +126,7 @@ public class EquipmentInfo1ThreadPool implements Callable<String>, Serializable
|
|
|
ProBasicEquipmentPoint point = pointmap.get(ContantXk.CJ_SSFS);
|
|
|
List<PointData> pointls = edosUtil.getHistoryDatasSnap(point.getNemCode(), begin.getTime() / 1000, end.getTime() / 1000);
|
|
|
|
|
|
+// List<TsDoubleData> historySnap = remoteService.adapterfd().getHistorySnap(point.getNemCode(), begin.getTime(), end.getTime(), 60);
|
|
|
pointls = pointls.stream().filter(n -> (n.getPointValueInDouble() > 0 && n.getPointValueInDouble() < 30)).collect(Collectors.toList());
|
|
|
|
|
|
if (!pointls.isEmpty()) {
|