|
@@ -1,39 +1,24 @@
|
|
|
package com.gyee.frame.service.app.index;
|
|
|
|
|
|
-import java.math.BigDecimal;
|
|
|
-import java.math.RoundingMode;
|
|
|
-import java.text.ParseException;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Calendar;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-import javax.annotation.Resource;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.SpringApplication;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
-
|
|
|
-import com.gyee.SpringbootStart;
|
|
|
import com.gyee.frame.common.spring.Constant;
|
|
|
import com.gyee.frame.common.spring.InitialRunner;
|
|
|
-import com.gyee.frame.model.auto.Weatherfd;
|
|
|
-import com.gyee.frame.model.auto.WeatherfdExample;
|
|
|
import com.gyee.frame.model.auto.WindPowerStationTestingPoint2;
|
|
|
-import com.gyee.frame.model.auto.WindPowerstationTestingPoint;
|
|
|
import com.gyee.frame.model.auto.Windpowerinfoday;
|
|
|
import com.gyee.frame.model.auto.Windpowerstation;
|
|
|
import com.gyee.frame.model.custom.PointData;
|
|
|
import com.gyee.frame.model.enumeration.Messagetype;
|
|
|
import com.gyee.frame.netty.websocket.util.SocketToolService;
|
|
|
import com.gyee.frame.service.WindpowerinfodayService;
|
|
|
-import com.gyee.frame.util.DateUtils;
|
|
|
import com.gyee.frame.util.StringUtils;
|
|
|
-import com.gyee.frame.util.mongodb.IMongodbUtil;
|
|
|
-import com.gyee.frame.util.mongodb.MongodbUtilImpl;
|
|
|
+import com.gyee.frame.util.golden.EdosUtil;
|
|
|
+import com.gyee.frame.util.golden.IEdosUtil;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.math.RoundingMode;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
*
|
|
@@ -49,7 +34,7 @@ public class IndexService extends SocketToolService{
|
|
|
@Autowired
|
|
|
private InitialRunner initialRunner;
|
|
|
private static int decimal_digit = 0;
|
|
|
-
|
|
|
+ IEdosUtil mongodb = new EdosUtil();
|
|
|
@Resource
|
|
|
private WindpowerinfodayService windpowerinfodayService;
|
|
|
|
|
@@ -63,7 +48,7 @@ public class IndexService extends SocketToolService{
|
|
|
windpowerstationAll.setId("0");
|
|
|
wpls.add(windpowerstationAll);
|
|
|
Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
|
- IMongodbUtil mongodb = new MongodbUtilImpl();
|
|
|
+
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
|
Map<String,Double> pointDataMap = new HashMap();
|
|
@@ -148,7 +133,7 @@ public class IndexService extends SocketToolService{
|
|
|
windpowerstationAll.setId("0");
|
|
|
wpls.add(windpowerstationAll);
|
|
|
Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
|
- IMongodbUtil mongodb = new MongodbUtilImpl();
|
|
|
+
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
|
Map<String,Double> pointDataMap = new HashMap();
|
|
@@ -384,7 +369,7 @@ public class IndexService extends SocketToolService{
|
|
|
windpowerstationAll.setId("0");
|
|
|
wpls.add(windpowerstationAll);
|
|
|
Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
|
- IMongodbUtil mongodb = new MongodbUtilImpl();
|
|
|
+
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
|
Map<String,Double> pointDataMap = new HashMap();
|
|
@@ -473,7 +458,7 @@ public class IndexService extends SocketToolService{
|
|
|
windpowerstationAll.setId("0");
|
|
|
wpls.add(windpowerstationAll);
|
|
|
Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
|
- IMongodbUtil mongodb = new MongodbUtilImpl();
|
|
|
+
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
|
Map<String,Double> pointDataMap = new HashMap();
|
|
@@ -513,7 +498,7 @@ public class IndexService extends SocketToolService{
|
|
|
windpowerstationAll.setId("0");
|
|
|
wpls.add(windpowerstationAll);
|
|
|
Map<String,Map<String,Double>> windpowerstationpointDataMap = new HashMap();
|
|
|
- IMongodbUtil mongodb = new MongodbUtilImpl();
|
|
|
+
|
|
|
|
|
|
for(Windpowerstation windpowerstation:wpls){
|
|
|
Map<String,Double> pointDataMap = new HashMap();
|