|
@@ -42,7 +42,7 @@ public class PointGenerateService {
|
|
private IProBasicEquipmentService proBasicWindturbineService;//风机
|
|
private IProBasicEquipmentService proBasicWindturbineService;//风机
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private IProBasicWppointService proBasicWppointService;//场站测点
|
|
|
|
|
|
+ private IProBasicPowerstationPointService proBasicWppointService;//场站测点
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IProBasicEquipmentPointService proBasicEquipmentPointService;//设备测点
|
|
private IProBasicEquipmentPointService proBasicEquipmentPointService;//设备测点
|
|
@@ -61,11 +61,11 @@ public class PointGenerateService {
|
|
|
|
|
|
if ("czjs".equals(p.getType())) {
|
|
if ("czjs".equals(p.getType())) {
|
|
|
|
|
|
- List<ProBasicWppoint> staionList = fjd(p, EnergyList);
|
|
|
|
- for (ProBasicWppoint i : staionList) {
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> staionList = fjd(p, EnergyList);
|
|
|
|
+ for (ProBasicPowerstationPoint i : staionList) {
|
|
boolean b = proBasicWppointService.addOrUpdate(i);
|
|
boolean b = proBasicWppointService.addOrUpdate(i);
|
|
if (!b) {
|
|
if (!b) {
|
|
- logger.error(i.getCode() + "测点插入失败");
|
|
|
|
|
|
+ logger.error(i.getNemCode() + "测点插入失败");
|
|
num++;
|
|
num++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -94,10 +94,10 @@ public class PointGenerateService {
|
|
|
|
|
|
return num;
|
|
return num;
|
|
}
|
|
}
|
|
- private List<ProBasicWppoint> fjd(Standardpoint p, List<ProBasicEnergyGroup> companysList) {
|
|
|
|
- List<ProBasicWppoint> stationList = new ArrayList<>();
|
|
|
|
|
|
+ private List<ProBasicPowerstationPoint> fjd(Standardpoint p, List<ProBasicEnergyGroup> companysList) {
|
|
|
|
+ List<ProBasicPowerstationPoint> stationList = new ArrayList<>();
|
|
|
|
|
|
- ProBasicWppoint stationpoint = null;
|
|
|
|
|
|
+ ProBasicPowerstationPoint stationpoint = null;
|
|
|
|
|
|
List<String> gflist = new ArrayList<>();
|
|
List<String> gflist = new ArrayList<>();
|
|
gflist.add("G");
|
|
gflist.add("G");
|
|
@@ -105,13 +105,13 @@ public class PointGenerateService {
|
|
|
|
|
|
for (ProBasicEnergyGroup c : companysList) {
|
|
for (ProBasicEnergyGroup c : companysList) {
|
|
StringBuilder gssb = null;
|
|
StringBuilder gssb = null;
|
|
- List<ProBasicWppoint> list1 = proBasicWppointService.getStationpointByUniformcode(c.getId(), p.getUniformcode());
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> list1 = proBasicWppointService.getStationpointByUniformcode(c.getId(), p.getUniformcode());
|
|
if (null == list1 || list1.size() <= 0) {
|
|
if (null == list1 || list1.size() <= 0) {
|
|
//"JSFW.QY_JN_XXXX_XX_XX_XX_XXX_CI0144" "区域限电停机台数(明细)"
|
|
//"JSFW.QY_JN_XXXX_XX_XX_XX_XXX_CI0144" "区域限电停机台数(明细)"
|
|
gssb = new StringBuilder();
|
|
gssb = new StringBuilder();
|
|
gssb.append("JSFW.").append(c.getId()).append("_");
|
|
gssb.append("JSFW.").append(c.getId()).append("_");
|
|
- stationpoint = new ProBasicWppoint();
|
|
|
|
- stationpoint.setCode(gssb.toString() + "XXXX_XX_XX_XX_XXX_" + p.getPoint());
|
|
|
|
|
|
+ stationpoint = new ProBasicPowerstationPoint();
|
|
|
|
+ stationpoint.setNemCode(gssb.toString() + "XXXX_XX_XX_XX_XXX_" + p.getPoint());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setWindpowerstationId(c.getId());
|
|
stationpoint.setWindpowerstationId(c.getId());
|
|
@@ -121,7 +121,7 @@ public class PointGenerateService {
|
|
|
|
|
|
|
|
|
|
for (String gf : gflist) {
|
|
for (String gf : gflist) {
|
|
- List<ProBasicWppoint> list1df = proBasicWppointService.getStationpointByUniformcode(c.getId() + "_" + gf, p.getUniformcode());
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> list1df = proBasicWppointService.getStationpointByUniformcode(c.getId() + "_" + gf, p.getUniformcode());
|
|
if (null == list1df || list1df.size() <= 0) {
|
|
if (null == list1df || list1df.size() <= 0) {
|
|
//"JSFW.QY_JN_QYG_XX_XX_XX_XXX_CI0144" "区域光伏限电停机台数(明细)"
|
|
//"JSFW.QY_JN_QYG_XX_XX_XX_XXX_CI0144" "区域光伏限电停机台数(明细)"
|
|
//"JSFW.QY_JN_QYF_XX_XX_XX_XXX_CI0144" "区域风场限电停机台数(明细)"
|
|
//"JSFW.QY_JN_QYF_XX_XX_XX_XXX_CI0144" "区域风场限电停机台数(明细)"
|
|
@@ -129,8 +129,8 @@ public class PointGenerateService {
|
|
gsgfsb.append(c.getId()).append(gf)
|
|
gsgfsb.append(c.getId()).append(gf)
|
|
.append("_XX_XX_XX_XXX_")
|
|
.append("_XX_XX_XX_XXX_")
|
|
.append(p.getPoint());
|
|
.append(p.getPoint());
|
|
- stationpoint = new ProBasicWppoint();
|
|
|
|
- stationpoint.setCode(gsgfsb.toString());
|
|
|
|
|
|
+ stationpoint = new ProBasicPowerstationPoint();
|
|
|
|
+ stationpoint.setNemCode(gsgfsb.toString());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setWindpowerstationId(c.getId() + "_" + gf);
|
|
stationpoint.setWindpowerstationId(c.getId() + "_" + gf);
|
|
@@ -146,14 +146,14 @@ public class PointGenerateService {
|
|
|
|
|
|
|
|
|
|
StringBuilder qusb = new StringBuilder();
|
|
StringBuilder qusb = new StringBuilder();
|
|
- List<ProBasicWppoint> list2 = proBasicWppointService.getStationpointByUniformcode(r.getId(), p.getUniformcode());
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> list2 = proBasicWppointService.getStationpointByUniformcode(r.getId(), p.getUniformcode());
|
|
if (null == list2 || list2.size() <= 0) {
|
|
if (null == list2 || list2.size() <= 0) {
|
|
//"JSFW.SX_JN_XXXX_XX_XX_XX_XXX_CI0144" "山西限电停机台数(明细)"
|
|
//"JSFW.SX_JN_XXXX_XX_XX_XX_XXX_CI0144" "山西限电停机台数(明细)"
|
|
|
|
|
|
qusb.append("JSFW.").append(c.getId()).append("_");
|
|
qusb.append("JSFW.").append(c.getId()).append("_");
|
|
qusb.append(r.getId()).append("_");
|
|
qusb.append(r.getId()).append("_");
|
|
- stationpoint = new ProBasicWppoint();
|
|
|
|
- stationpoint.setCode(gssb.toString() + "XX_XX_XX_XXX_" + p.getPoint());
|
|
|
|
|
|
+ stationpoint = new ProBasicPowerstationPoint();
|
|
|
|
+ stationpoint.setNemCode(gssb.toString() + "XX_XX_XX_XXX_" + p.getPoint());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setWindpowerstationId(r.getId());
|
|
stationpoint.setWindpowerstationId(r.getId());
|
|
@@ -162,7 +162,7 @@ public class PointGenerateService {
|
|
}
|
|
}
|
|
|
|
|
|
for (String gf : gflist) {
|
|
for (String gf : gflist) {
|
|
- List<ProBasicWppoint> list2df = proBasicWppointService.getStationpointByUniformcode(r.getId() + "_" + gf, p.getUniformcode());
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> list2df = proBasicWppointService.getStationpointByUniformcode(r.getId() + "_" + gf, p.getUniformcode());
|
|
if (null == list2df || list2df.size() <= 0) {
|
|
if (null == list2df || list2df.size() <= 0) {
|
|
//"JSFW.SX_JN_SXG_XX_XX_XX_XXX_CI0144" "山西光伏限电停机台数(明细)"
|
|
//"JSFW.SX_JN_SXG_XX_XX_XX_XXX_CI0144" "山西光伏限电停机台数(明细)"
|
|
//"JSFW.SX_JN_SXF_XX_XX_XX_XXX_CI0144" "山西风场限电停机台数(明细)"
|
|
//"JSFW.SX_JN_SXF_XX_XX_XX_XXX_CI0144" "山西风场限电停机台数(明细)"
|
|
@@ -170,8 +170,8 @@ public class PointGenerateService {
|
|
qugfsb.append(gf)
|
|
qugfsb.append(gf)
|
|
.append("_XX_XX_XX_XXX_")
|
|
.append("_XX_XX_XX_XXX_")
|
|
.append(p.getPoint());
|
|
.append(p.getPoint());
|
|
- stationpoint = new ProBasicWppoint();
|
|
|
|
- stationpoint.setCode(qugfsb.toString());
|
|
|
|
|
|
+ stationpoint = new ProBasicPowerstationPoint();
|
|
|
|
+ stationpoint.setNemCode(qugfsb.toString());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setName(c.getName() + p.getName());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setWindpowerstationId(r.getId() + "_" + gf);
|
|
stationpoint.setWindpowerstationId(r.getId() + "_" + gf);
|
|
@@ -184,11 +184,11 @@ public class PointGenerateService {
|
|
|
|
|
|
List<ProBasicPowerstation> windpowerstationList = proBasicWindpowerstationService.getList(r.getId());
|
|
List<ProBasicPowerstation> windpowerstationList = proBasicWindpowerstationService.getList(r.getId());
|
|
for (ProBasicPowerstation station : windpowerstationList) {
|
|
for (ProBasicPowerstation station : windpowerstationList) {
|
|
- List<ProBasicWppoint> list3 = proBasicWppointService.getStationpointByUniformcode(station.getId(), p.getUniformcode());
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> list3 = proBasicWppointService.getStationpointByUniformcode(station.getId(), p.getUniformcode());
|
|
if (null != list3 && list3.size() > 0) {
|
|
if (null != list3 && list3.size() > 0) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
- stationpoint = new ProBasicWppoint();
|
|
|
|
|
|
+ stationpoint = new ProBasicPowerstationPoint();
|
|
//BHBFCJSFW.SX_JN_BHBF_JS_XX_XX_XXX_CI0079
|
|
//BHBFCJSFW.SX_JN_BHBF_JS_XX_XX_XXX_CI0079
|
|
//SYGCJSFW.SX_JN_SYG_JS_XX_XX_XXX_CI0001
|
|
//SYGCJSFW.SX_JN_SYG_JS_XX_XX_XXX_CI0001
|
|
//HSMFCJSFW.SX_JN_HSMF_JS_XX_XX_XXX_AI0002
|
|
//HSMFCJSFW.SX_JN_HSMF_JS_XX_XX_XXX_AI0002
|
|
@@ -200,7 +200,7 @@ public class PointGenerateService {
|
|
stationsb.append(c.getId()).append("_").append(r.getId()).append("_").append(substaion);
|
|
stationsb.append(c.getId()).append("_").append(r.getId()).append("_").append(substaion);
|
|
stationsb.append(station.getId().endsWith("_FDC") ? "F" : "G").append("_");
|
|
stationsb.append(station.getId().endsWith("_FDC") ? "F" : "G").append("_");
|
|
|
|
|
|
- stationpoint.setCode(stationsb.toString() + "XX_XX_XXX_" + p.getPoint());
|
|
|
|
|
|
+ stationpoint.setNemCode(stationsb.toString() + "XX_XX_XXX_" + p.getPoint());
|
|
stationpoint.setName(station.getName() + p.getName());
|
|
stationpoint.setName(station.getName() + p.getName());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setWindpowerstationId(station.getId());
|
|
stationpoint.setWindpowerstationId(station.getId());
|
|
@@ -209,18 +209,18 @@ public class PointGenerateService {
|
|
|
|
|
|
List<ProBasicProject> projectList = proBasicProjectService.getList(station.getId());
|
|
List<ProBasicProject> projectList = proBasicProjectService.getList(station.getId());
|
|
for (ProBasicProject project : projectList) {
|
|
for (ProBasicProject project : projectList) {
|
|
- List<ProBasicWppoint> list4 = proBasicWppointService.getStationpointByUniformcode(project.getId(), p.getUniformcode());
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> list4 = proBasicWppointService.getStationpointByUniformcode(project.getId(), p.getUniformcode());
|
|
if (null != list4 && list4.size() > 0) {
|
|
if (null != list4 && list4.size() > 0) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
//期次测点
|
|
//期次测点
|
|
- stationpoint = new ProBasicWppoint();
|
|
|
|
|
|
+ stationpoint = new ProBasicPowerstationPoint();
|
|
StringBuilder projectsb = new StringBuilder(stationsb);
|
|
StringBuilder projectsb = new StringBuilder(stationsb);
|
|
Integer pnum = Integer.valueOf(project.getId().substring(substaion.length(), project.getId().indexOf("_"))) * 1;
|
|
Integer pnum = Integer.valueOf(project.getId().substring(substaion.length(), project.getId().indexOf("_"))) * 1;
|
|
projectsb.append("P")
|
|
projectsb.append("P")
|
|
.append(pnum);
|
|
.append(pnum);
|
|
|
|
|
|
- stationpoint.setCode(projectsb.toString() + "_XX_XXX_" + p.getPoint());
|
|
|
|
|
|
+ stationpoint.setNemCode(projectsb.toString() + "_XX_XXX_" + p.getPoint());
|
|
stationpoint.setName(project.getName() + p.getName());
|
|
stationpoint.setName(project.getName() + p.getName());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setWindpowerstationId(project.getId());
|
|
stationpoint.setWindpowerstationId(project.getId());
|
|
@@ -230,11 +230,11 @@ public class PointGenerateService {
|
|
List<ProBasicLine> lineList = proBasicLineService.getList(project.getId());
|
|
List<ProBasicLine> lineList = proBasicLineService.getList(project.getId());
|
|
for (ProBasicLine l : lineList) {
|
|
for (ProBasicLine l : lineList) {
|
|
|
|
|
|
- List<ProBasicWppoint> list5 = proBasicWppointService.getStationpointByUniformcode(l.getId(), p.getUniformcode());
|
|
|
|
|
|
+ List<ProBasicPowerstationPoint> list5 = proBasicWppointService.getStationpointByUniformcode(l.getId(), p.getUniformcode());
|
|
if (null != list5 && list5.size() > 0) {
|
|
if (null != list5 && list5.size() > 0) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
- stationpoint = new ProBasicWppoint();
|
|
|
|
|
|
+ stationpoint = new ProBasicPowerstationPoint();
|
|
//线路测点
|
|
//线路测点
|
|
StringBuilder linesb = new StringBuilder(projectsb);
|
|
StringBuilder linesb = new StringBuilder(projectsb);
|
|
|
|
|
|
@@ -242,7 +242,7 @@ public class PointGenerateService {
|
|
linesb.append("_L").append(lnum)
|
|
linesb.append("_L").append(lnum)
|
|
.append("_XXX_").append(p.getPoint());
|
|
.append("_XXX_").append(p.getPoint());
|
|
|
|
|
|
- stationpoint.setCode(linesb.toString());
|
|
|
|
|
|
+ stationpoint.setNemCode(linesb.toString());
|
|
stationpoint.setName(l.getName() + p.getName());
|
|
stationpoint.setName(l.getName() + p.getName());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setUniformCode(p.getUniformcode());
|
|
stationpoint.setWindpowerstationId(l.getId());
|
|
stationpoint.setWindpowerstationId(l.getId());
|