فهرست منبع

common\dataprocessing.js

shilin 4 سال پیش
والد
کامیت
c59ac6feca
1فایلهای تغییر یافته به همراه50 افزوده شده و 15 حذف شده
  1. 50 15
      common/dataprocessing.js

+ 50 - 15
common/dataprocessing.js

@@ -23,37 +23,72 @@ class Dataprocessing {
 	
 	getWindPowerStationNameById(name)
 	{
-		
-		if (name == '麻黄山风电场') {
+		if (name == '宁夏新能源公司') {
+			let  wpId = '0';
+			return wpId;
+		}else if (name == '麻黄山风电场') {
 		
 			let  wpId = 'MHS_FDC';
 			return wpId;
-		}
-		if (name == '牛首山风电场') {
+		}else if (name == '牛首山风电场') {
 			let  wpId = 'NSS_FDC';
 			return wpId;
-		}
-		if (name == '石板泉风电场') {
+		}else if (name == '石板泉风电场') {
 			let  wpId = 'SBQ_FDC';
 			return wpId;
-		}
-		if (name == '青山风电场') {
+		}else if (name == '青山风电场') {
 			let  wpId = 'QS_FDC';
 			return wpId;
-		}
-		if (name == '香山风电场') {
+		}else if (name == '香山风电场') {
 			let  wpId = 'XS_FDC';
 			return wpId;
-		}
-		if (name == '崇礼风电场') {
+		}else if (name == '河北能源集团') {
+			let  wpId = '0';
+			return wpId;
+		}else if (name == '崇礼风电场') {
 			let  wpId = 'CL_FDC';
 			return wpId;
-		}
-		if (name == '康保风电场') {
+		}else if (name == '康保风电场') {
 			let  wpId = 'KB_FDC';
 			return wpId;
+		}else if (name == '代县风电场') {
+			let  wpId = 'DX_FDC';
+			return wpId;
 		}
-		if (name == '代县风电场') {
+	}
+	
+	getWindPowerStationNameByWeatherId(name)
+	{
+		
+		if (name == '宁夏新能源公司') {
+			let  wpId = 'MHS_FDC';
+			return wpId;
+		}else if (name == '麻黄山风电场') {
+		
+			let  wpId = 'MHS_FDC';
+			return wpId;
+		}else if (name == '牛首山风电场') {
+			let  wpId = 'NSS_FDC';
+			return wpId;
+		}else if (name == '石板泉风电场') {
+			let  wpId = 'SBQ_FDC';
+			return wpId;
+		}else if (name == '青山风电场') {
+			let  wpId = 'QS_FDC';
+			return wpId;
+		}else if (name == '香山风电场') {
+			let  wpId = 'XS_FDC';
+			return wpId;
+		}else if (name == '河北能源集团') {
+			let  wpId = 'CL_FDC';
+			return wpId;
+		}else if (name == '崇礼风电场') {
+			let  wpId = 'CL_FDC';
+			return wpId;
+		}else if (name == '康保风电场') {
+			let  wpId = 'KB_FDC';
+			return wpId;
+		}else if (name == '代县风电场') {
 			let  wpId = 'DX_FDC';
 			return wpId;
 		}