|
@@ -36,7 +36,6 @@ public class PointGenerateService {
|
|
|
@Autowired
|
|
|
private IWindturbineService windturbineService;//风机
|
|
|
|
|
|
-
|
|
|
@Autowired
|
|
|
private IWindpowerstationpointnewService windpowerstationpointnewService;
|
|
|
|
|
@@ -44,18 +43,20 @@ public class PointGenerateService {
|
|
|
private IWindturbinetestingpointnewService windturbinetestingpointnewService;
|
|
|
|
|
|
|
|
|
- public int addGeneratePoint(String regionCode, String companysId, String stationId, String projectId, String lineId, List<Standardpoint> pointList) {
|
|
|
+
|
|
|
+ public int addGeneratePoint(String regioncompanyid, String id, String stationId, String projectId, String lineId, List<Standardpoint> pointList) {
|
|
|
+
|
|
|
|
|
|
|
|
|
int tag = 0;
|
|
|
//区域
|
|
|
- List<Region> regionList = regionService.getReginBycode(regionCode);
|
|
|
+ List<Region> regionList = regionService.getReginBycode(regioncompanyid);
|
|
|
|
|
|
//判断公司是否为空
|
|
|
- if (null != companysId && companysId.length() > 0) {
|
|
|
+ if (null != id && id.length() > 0) {
|
|
|
//不为空
|
|
|
for (Region r : regionList) {
|
|
|
- List<Companys> companysList = companysService.getCompanysByidAndRid(companysId, r.getId());
|
|
|
+ List<Companys> companysList = companysService.getCompanysByidAndRid(r.getCompanyid());
|
|
|
|
|
|
//判断是否有匹配的的公司
|
|
|
if (null != companysList && companysList.size() > 0) {
|
|
@@ -67,43 +68,43 @@ public class PointGenerateService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (StringUtils.isNotNull(regionCode) && StringUtils.isNotNull(companysId)
|
|
|
+ if (StringUtils.isNotNull(regioncompanyid) && StringUtils.isNotNull(id)
|
|
|
&& StringUtils.isNotNull(stationId) && StringUtils.isNotNull(projectId) && StringUtils.isNotNull(lineId)) {
|
|
|
tag = 1;
|
|
|
}
|
|
|
|
|
|
- if (StringUtils.isNotNull(regionCode) && StringUtils.isNotNull(companysId)
|
|
|
+ if (StringUtils.isNotNull(regioncompanyid) && StringUtils.isNotNull(id)
|
|
|
&& StringUtils.isNotNull(stationId) && StringUtils.isNotNull(projectId)) {
|
|
|
tag = 2;
|
|
|
}
|
|
|
|
|
|
- if (StringUtils.isNotNull(regionCode) && StringUtils.isNotNull(companysId) && StringUtils.isNotNull(stationId)) {
|
|
|
+ if (StringUtils.isNotNull(regioncompanyid) && StringUtils.isNotNull(id) && StringUtils.isNotNull(stationId)) {
|
|
|
tag = 3;
|
|
|
}
|
|
|
- if (StringUtils.isNotNull(regionCode) && StringUtils.isNotNull(companysId)) {
|
|
|
+ if (StringUtils.isNotNull(regioncompanyid) && StringUtils.isNotNull(id)) {
|
|
|
tag = 4;
|
|
|
}
|
|
|
|
|
|
- if (StringUtils.isNotNull(regionCode)) {
|
|
|
+ if (StringUtils.isNotNull(regioncompanyid)) {
|
|
|
tag = 5;
|
|
|
}
|
|
|
|
|
|
switch (tag) {
|
|
|
case 1:
|
|
|
- addPoint(regionCode, companysId, stationId, projectId, lineId, pointList);
|
|
|
+ addPoint(regioncompanyid, id, stationId, projectId, lineId, pointList);
|
|
|
break;
|
|
|
case 2:
|
|
|
- addPoint(regionCode, companysId, stationId, projectId, pointList);
|
|
|
+ addPoint(regioncompanyid, id, stationId, projectId, pointList);
|
|
|
break;
|
|
|
case 3:
|
|
|
- addPoint(regionCode, companysId, stationId, pointList);
|
|
|
+ addPoint(regioncompanyid, id, stationId, pointList);
|
|
|
break;
|
|
|
case 4:
|
|
|
- addPoint(regionCode, companysId, pointList);
|
|
|
+ addPoint(regioncompanyid, id, pointList);
|
|
|
break;
|
|
|
|
|
|
case 5:
|
|
|
- addPoint(regionCode, pointList);
|
|
|
+ addPoint(regioncompanyid, pointList);
|
|
|
break;
|
|
|
default:
|
|
|
addPoint(pointList);
|
|
@@ -116,7 +117,7 @@ public class PointGenerateService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- int addPoint(String regionCode, String companysId, String stationId, String projectId, String lineId, List<Standardpoint> pointList) {
|
|
|
+ int addPoint(String regioncompanyid, String id, String stationId, String projectId, String lineId, List<Standardpoint> pointList) {
|
|
|
|
|
|
|
|
|
List<Windpowerstationpointnew> stationList = new ArrayList<>();
|
|
@@ -177,23 +178,23 @@ public class PointGenerateService {
|
|
|
|
|
|
}
|
|
|
|
|
|
- int addPoint(String regionCode, String companysId, String stationId, String projectId, List<Standardpoint> uniformcodes) {
|
|
|
+ int addPoint(String regioncompanyid, String id, String stationId, String projectId, List<Standardpoint> uniformcodes) {
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
|
|
|
- int addPoint(String regionCode, String companysId, String stationId, List<Standardpoint> uniformcodes) {
|
|
|
+ int addPoint(String regioncompanyid, String id, String stationId, List<Standardpoint> uniformcodes) {
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- int addPoint(String regionCode, String companysId, List<Standardpoint> uniformcodes) {
|
|
|
+ int addPoint(String regioncompanyid, String id, List<Standardpoint> uniformcodes) {
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- int addPoint(String regionCode, List<Standardpoint> uniformcodes) {
|
|
|
+ int addPoint(String regioncompanyid, List<Standardpoint> uniformcodes) {
|
|
|
|
|
|
return 0;
|
|
|
}
|