|
@@ -27,6 +27,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
private final String FSGF="FSGFJSFW.";
|
|
|
private final String JRGF="JRGFJSFW.";
|
|
|
+ private final String PLGF="PLGFJSFW.";
|
|
|
private final String GFFZGLYC ="GF-FZ-GLYC.";
|
|
|
private final String GFFSGLYC ="GF-FS-GLYC.";
|
|
|
private final String GFPLGLYC ="GF-PL-GLYC.";
|
|
@@ -39,7 +40,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public PointData getRealData(Windpowerstationpointnew point) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -99,7 +100,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public List<PointData> getHistoryDatasSnap(Windpowerstationpointnew point, Long beginDate, Long endDate, Long count, Long pried) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -157,7 +158,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
getHistsnapSameTiem(point.getCode(), beginDate, pried, resultList);
|
|
|
}else
|
|
|
{
|
|
|
- if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
resultList=snapList;
|
|
|
}else
|
|
@@ -245,7 +246,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
private void getHistsnapSameTiem(String pointid, Long beginDate, Long pried,
|
|
|
List<PointData> resultList) {
|
|
|
|
|
|
- if(!pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(!pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !pointid.startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -294,7 +295,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
@Override
|
|
|
public List<PointData> getHistoryDatasRaw(Windpowerstationpointnew point, Long beginDate, Long endDate) throws Exception {
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -360,7 +361,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
@Override
|
|
|
public PointData getRealData(Windturbinetestingpointnew point) throws Exception {
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -420,7 +421,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
@Override
|
|
|
public List<PointData> getHistoryDatasSnap(Windturbinetestingpointnew point, Long beginDate, Long endDate, Long count, Long pried) throws Exception {
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -480,7 +481,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
}else
|
|
|
{
|
|
|
|
|
|
- if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !pointid.startsWith(PLGF))
|
|
|
{
|
|
|
resultList=snapList;
|
|
|
}else
|
|
@@ -564,7 +565,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public List<PointData> getHistoryDatasRaw(Windturbinetestingpointnew point, Long beginDate, Long endDate) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -631,7 +632,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
public PointData getRealData(String pointid) throws Exception {
|
|
|
|
|
|
|
|
|
- if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !pointid.startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -685,7 +686,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
if(StringUtils.notEmp(pointids) )
|
|
|
{
|
|
|
- if(!pointids[0].startsWith(FSGF) && !pointids[0].startsWith(JRGF))
|
|
|
+ if(!pointids[0].startsWith(FSGF) && !pointids[0].startsWith(JRGF) && !pointids[0].startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -832,7 +833,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
if(StringUtils.notEmp(pointids) && !pointids.isEmpty() )
|
|
|
{
|
|
|
|
|
|
- if(!pointids.get(0).startsWith(FSGF) && !pointids.get(0).startsWith(JRGF) && !pointids.get(0).startsWith(GFFZGLYC) && !pointids.get(0).startsWith(GFFSGLYC) && !pointids.get(0).startsWith(GFPLGLYC))
|
|
|
+ if(!pointids.get(0).startsWith(FSGF) && !pointids.get(0).startsWith(JRGF) && !pointids.get(0).startsWith(PLGF) && !pointids.get(0).startsWith(GFFZGLYC) && !pointids.get(0).startsWith(GFFSGLYC) && !pointids.get(0).startsWith(GFPLGLYC))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -979,7 +980,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
if(StringUtils.notEmp(pointids) )
|
|
|
{
|
|
|
|
|
|
- if(!pointids[0].startsWith(FSGF) && !pointids[0].startsWith(JRGF))
|
|
|
+ if(!pointids[0].startsWith(FSGF) && !pointids[0].startsWith(JRGF) && !pointids[0].startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1072,7 +1073,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
public List<PointData> getHistoryDatasSnap(String pointid, Long beginDate, Long endDate, Long count, Long pried) throws Exception {
|
|
|
|
|
|
|
|
|
- if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !pointid.startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1121,7 +1122,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
}else
|
|
|
{
|
|
|
|
|
|
- if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !pointid.startsWith(PLGF))
|
|
|
{
|
|
|
resultList=list;
|
|
|
}else
|
|
@@ -1206,7 +1207,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public List<PointData> getHistoryDatasRaw(String pointid, Long beginDate, Long endDate) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(pointid) && StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(pointid) && StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !pointid.startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1261,7 +1262,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public List<PointData> getHistStat(Windturbinetestingpointnew point, Long beginDate, Long endDate, Long count, Long pried, int type) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1343,7 +1344,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
@Override
|
|
|
public List<PointData> getHistStat(Windpowerstationpointnew point, Long beginDate, Long endDate, Long count, Long pried, int type) throws Exception {
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getCode()) && !point.getCode().startsWith(FSGF) && !point.getCode().startsWith(JRGF) && !point.getCode().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1419,7 +1420,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public List<PointData> getHistStat(String pointid, Long beginDate, Long endDate, Long count, Long pried, int type) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(pointid) && !pointid.startsWith(FSGF) && !pointid.startsWith(JRGF) && !pointid.startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1484,7 +1485,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public DNAStatVal[] getHistStat(String point, Long beginDate, Long endDate, Integer pried) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(point) && !point.startsWith(FSGF) && !point.startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && !point.startsWith(FSGF) && !point.startsWith(JRGF) && !point.startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1588,7 +1589,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
@Override
|
|
|
public void updatePoint(PointData point) throws Exception {
|
|
|
|
|
|
- if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getEdnaId()) &&!point.getEdnaId().startsWith(FSGF) && !point.getEdnaId().startsWith(JRGF))
|
|
|
+ if(StringUtils.notEmp(point) && StringUtils.notEmp(point.getEdnaId()) &&!point.getEdnaId().startsWith(FSGF) && !point.getEdnaId().startsWith(JRGF) && !point.getEdnaId().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1618,7 +1619,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
if (StringUtils.notEmp(tagNames) && tagNames.length > 0) {
|
|
|
|
|
|
|
|
|
- if(!tagNames[0].startsWith(FSGF) && !tagNames[0].startsWith(JRGF))
|
|
|
+ if(!tagNames[0].startsWith(FSGF) && !tagNames[0].startsWith(JRGF) && !tagNames[0].startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1667,7 +1668,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
if(null!=pointls && !pointls.isEmpty())
|
|
|
{
|
|
|
- if(!pointls.get(0).getEdnaId().startsWith(FSGF) && !pointls.get(0).getEdnaId().startsWith(JRGF))
|
|
|
+ if(!pointls.get(0).getEdnaId().startsWith(FSGF) && !pointls.get(0).getEdnaId().startsWith(JRGF) && !pointls.get(0).getEdnaId().startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|
|
@@ -1762,7 +1763,7 @@ public class EdosUtil implements IRealTimeDataBaseUtil {
|
|
|
|
|
|
if(StringUtils.notEmp(nameList) && nameList.length>0 && StringUtils.notEmp(tTime))
|
|
|
{
|
|
|
- if(!nameList[0].startsWith(FSGF) && !nameList[0].startsWith(JRGF))
|
|
|
+ if(!nameList[0].startsWith(FSGF) && !nameList[0].startsWith(JRGF) && !nameList[0].startsWith(PLGF))
|
|
|
{
|
|
|
baseURL = V2Config.getBaseurl();
|
|
|
}else
|