|
@@ -1,9 +1,9 @@
|
|
|
package com.gyee.failurestatistics.service;
|
|
|
|
|
|
+import com.gyee.common.contant.ContantXk;
|
|
|
import com.gyee.common.model.PointData;
|
|
|
import com.gyee.common.model.StringUtils;
|
|
|
import com.gyee.failurestatistics.init.CacheContext;
|
|
|
-import com.gyee.failurestatistics.init.Constant;
|
|
|
import com.gyee.failurestatistics.model.auto.*;
|
|
|
import com.gyee.failurestatistics.service.auto.IProEconPartTemperatureMainService;
|
|
|
import com.gyee.failurestatistics.service.auto.IProEconPartTemperatureSubService;
|
|
@@ -35,26 +35,6 @@ public class ParttemperatureService {
|
|
|
SimpleDateFormat df2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
|
|
|
- private String CLXSRZYW1 = "AI038";// 齿轮箱输入轴油温1
|
|
|
- private String CLXSRZYW2 = "AI039";// 齿轮箱输入轴油温2
|
|
|
- private String CLXRKYW = "AI040";// 齿轮箱入口温度
|
|
|
- private String CLXYW = "AI041";// 齿轮箱油温
|
|
|
-
|
|
|
- private String FDJZCWDA = "AI052";// 发电机轴承温度A
|
|
|
- private String FDJZCWDB = "AI053";// 发电机轴承温度B
|
|
|
- private String FDJUXYZWD = "AI045";// 发电机U相绕组温度
|
|
|
- private String FDJVXYZWD = "AI047";// 发电机V相绕组温度
|
|
|
- private String FDJWXYZWD = "AI049";// 发电机W相绕组温度
|
|
|
- private String FDJLQFWD = "AI054";// 发电机冷却风温度
|
|
|
-
|
|
|
- private String BJDRQWD = "AI113";// 变浆电容器温度
|
|
|
- private String BJDRDY = "AI116";// 变浆电容温度
|
|
|
- private String BJDLQWD = "AI239";// 变浆电流器温度
|
|
|
- private String BJDJWD = "AI242";// 电机温度
|
|
|
- private String BJKZGWD = "AI233";// 变浆控制柜温度
|
|
|
-
|
|
|
- private String TDGWD = "AI069";// 塔底柜温度
|
|
|
- private String TDJGWD = "AI070";// 塔顶机柜温度
|
|
|
|
|
|
public void deleteParttemperaturemain(Date recodedate) {
|
|
|
proEconPartTemperatureMainService.deleteParttemperaturemain(recodedate);
|
|
@@ -116,29 +96,29 @@ public class ParttemperatureService {
|
|
|
|
|
|
if(StringUtils.notEmp(map) && !map.isEmpty())
|
|
|
{
|
|
|
- Map<String, Double> wdmap = getWdValue(wt, Constant.TPOINT_WT_JCWD, endDate, beginDate, map);
|
|
|
+ Map<String, Double> wdmap = getWdValue(wt, ContantXk.AI074, endDate, beginDate, map);
|
|
|
|
|
|
|
|
|
- Map<String, Double> cLXSRZYW1map = getPartTargetValue(wt, CLXSRZYW1, endDate, beginDate, map,63,0);
|
|
|
- Map<String, Double> cLXSRZYW2map = getPartTargetValue(wt, CLXSRZYW2, endDate, beginDate, map,63,0);
|
|
|
- Map<String, Double> cLXRKYWmap = getPartTargetValue(wt, CLXRKYW, endDate, beginDate, map,63,0);
|
|
|
- Map<String, Double> cLXYWmap = getPartTargetValue(wt, CLXYW, endDate, beginDate, map,60,0);
|
|
|
+ Map<String, Double> cLXSRZYW1map = getPartTargetValue(wt, ContantXk.AI042, endDate, beginDate, map,63,0);
|
|
|
+ Map<String, Double> cLXSRZYW2map = getPartTargetValue(wt, ContantXk.AI043, endDate, beginDate, map,63,0);
|
|
|
+ Map<String, Double> cLXRKYWmap = getPartTargetValue(wt, ContantXk.AI038, endDate, beginDate, map,63,0);
|
|
|
+ Map<String, Double> cLXYWmap = getPartTargetValue(wt, ContantXk.AI039, endDate, beginDate, map,60,0);
|
|
|
|
|
|
- Map<String, Double> fDJZCWDAmap = getPartTargetValue(wt, FDJZCWDA, endDate, beginDate, map,45,0);
|
|
|
- Map<String, Double> fDJZCWDBmap = getPartTargetValue(wt, FDJZCWDB, endDate, beginDate, map,45,0);
|
|
|
- Map<String, Double> fDJUXYZWDmap = getPartTargetValue(wt, FDJUXYZWD, endDate, beginDate, map,110,0);
|
|
|
- Map<String, Double> fDJVXYZWDmap = getPartTargetValue(wt, FDJVXYZWD, endDate, beginDate, map,110,0);
|
|
|
- Map<String, Double> fDJWXYZWDmap = getPartTargetValue(wt, FDJWXYZWD, endDate, beginDate, map,110,0);
|
|
|
- Map<String, Double> fDJLQFWDmap = getPartTargetValue(wt, FDJLQFWD, endDate, beginDate, map,50,0);
|
|
|
+ Map<String, Double> fDJZCWDAmap = getPartTargetValue(wt, ContantXk.AI092, endDate, beginDate, map,45,0);
|
|
|
+ Map<String, Double> fDJZCWDBmap = getPartTargetValue(wt, ContantXk.AI062, endDate, beginDate, map,45,0);
|
|
|
+ Map<String, Double> fDJUXYZWDmap = getPartTargetValue(wt, ContantXk.AI004, endDate, beginDate, map,110,0);
|
|
|
+ Map<String, Double> fDJVXYZWDmap = getPartTargetValue(wt, ContantXk.AI006, endDate, beginDate, map,110,0);
|
|
|
+ Map<String, Double> fDJWXYZWDmap = getPartTargetValue(wt, ContantXk.AI008, endDate, beginDate, map,110,0);
|
|
|
+ Map<String, Double> fDJLQFWDmap = getPartTargetValue(wt, ContantXk.AI059, endDate, beginDate, map,50,0);
|
|
|
|
|
|
- Map<String, Double> bJDRQWDmap = getPartTargetValue(wt, BJDRQWD, endDate, beginDate, map,35,0);
|
|
|
- Map<String, Double> bJDRDYmap = getPartTargetValue(wt, BJDRDY, endDate, beginDate, map,70,0);
|
|
|
- Map<String, Double> bJDLQWDmap = getPartTargetValue(wt, BJDLQWD, endDate, beginDate, map,50,0);
|
|
|
- Map<String, Double> bJDJWDmap = getPartTargetValue(wt, BJDJWD, endDate, beginDate, map,50,0);
|
|
|
- Map<String, Double> bJKZGWDmap = getPartTargetValue(wt, BJKZGWD, endDate, beginDate, map,45,0);
|
|
|
+ Map<String, Double> bJDRQWDmap = getPartTargetValue(wt, ContantXk.AI050, endDate, beginDate, map,35,0);
|
|
|
+ Map<String, Double> bJDRDYmap = getPartTargetValue(wt, ContantXk.AI076, endDate, beginDate, map,70,0);
|
|
|
+ Map<String, Double> bJDLQWDmap = getPartTargetValue(wt, ContantXk.AI020, endDate, beginDate, map,50,0);
|
|
|
+ Map<String, Double> bJDJWDmap = getPartTargetValue(wt, ContantXk.AI045, endDate, beginDate, map,50,0);
|
|
|
+ Map<String, Double> bJKZGWDmap = getPartTargetValue(wt, ContantXk.AI029, endDate, beginDate, map,45,0);
|
|
|
|
|
|
- Map<String, Double> tDGWDmap = getPartTargetValue(wt, TDGWD, endDate, beginDate, map,35,0);
|
|
|
- Map<String, Double> tDJGWDmap = getPartTargetValue(wt, TDJGWD, endDate, beginDate, map,35,0);
|
|
|
+ Map<String, Double> tDGWDmap = getPartTargetValue(wt, ContantXk.AI085, endDate, beginDate, map,35,0);
|
|
|
+ Map<String, Double> tDJGWDmap = getPartTargetValue(wt, ContantXk.AI099, endDate, beginDate, map,35,0);
|
|
|
|
|
|
|
|
|
Map<String, Map<String, Integer>> pointmap =new HashMap<>();
|
|
@@ -151,26 +131,26 @@ public class ParttemperatureService {
|
|
|
Map.Entry<String, Double> wdentry = (Map.Entry<String, Double>) wdit.next();
|
|
|
|
|
|
|
|
|
- setPointValues(CLXSRZYW1, cLXSRZYW1map, pointmap, wdentry);
|
|
|
- setPointValues(CLXSRZYW2, cLXSRZYW2map, pointmap, wdentry);
|
|
|
- setPointValues(CLXRKYW, cLXRKYWmap, pointmap, wdentry);
|
|
|
- setPointValues(CLXYW, cLXYWmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI042, cLXSRZYW1map, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI043, cLXSRZYW2map, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI038, cLXRKYWmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI039, cLXYWmap, pointmap, wdentry);
|
|
|
|
|
|
- setPointValues(FDJZCWDA, fDJZCWDAmap, pointmap, wdentry);
|
|
|
- setPointValues(FDJZCWDB, fDJZCWDBmap, pointmap, wdentry);
|
|
|
- setPointValues(FDJUXYZWD, fDJUXYZWDmap, pointmap, wdentry);
|
|
|
- setPointValues(FDJVXYZWD, fDJVXYZWDmap, pointmap, wdentry);
|
|
|
- setPointValues(FDJWXYZWD, fDJWXYZWDmap, pointmap, wdentry);
|
|
|
- setPointValues(FDJLQFWD, fDJLQFWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI092, fDJZCWDAmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI062, fDJZCWDBmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI004, fDJUXYZWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI006, fDJVXYZWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI008, fDJWXYZWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI059, fDJLQFWDmap, pointmap, wdentry);
|
|
|
|
|
|
- setPointValues(BJDRQWD, bJDRQWDmap, pointmap, wdentry);
|
|
|
- setPointValues(BJDRDY, bJDRDYmap, pointmap, wdentry);
|
|
|
- setPointValues(BJDLQWD, bJDLQWDmap, pointmap, wdentry);
|
|
|
- setPointValues(BJDJWD, bJDJWDmap, pointmap, wdentry);
|
|
|
- setPointValues(BJKZGWD, bJKZGWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI050, bJDRQWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI076, bJDRDYmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI020, bJDLQWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI045, bJDJWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI029, bJKZGWDmap, pointmap, wdentry);
|
|
|
|
|
|
- setPointValues(TDGWD, tDGWDmap, pointmap, wdentry);
|
|
|
- setPointValues(TDJGWD, tDJGWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI085, tDGWDmap, pointmap, wdentry);
|
|
|
+ setPointValues(ContantXk.AI099, tDJGWDmap, pointmap, wdentry);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -276,68 +256,68 @@ public class ParttemperatureService {
|
|
|
|
|
|
private void initialCodeValue(List<String> codels, Map<String, String> codeParentmap, Map<String, String> codenamemap) {
|
|
|
|
|
|
- codels.add(CLXSRZYW1);
|
|
|
- codels.add(CLXSRZYW2);
|
|
|
- codels.add(CLXRKYW);
|
|
|
- codels.add(CLXYW);
|
|
|
-
|
|
|
- codels.add(FDJZCWDA);
|
|
|
- codels.add(FDJZCWDB);
|
|
|
- codels.add(FDJUXYZWD);
|
|
|
- codels.add(FDJVXYZWD);
|
|
|
- codels.add(FDJWXYZWD);
|
|
|
- codels.add(FDJLQFWD);
|
|
|
-
|
|
|
- codels.add(BJDRQWD);
|
|
|
- codels.add(BJDRDY);
|
|
|
- codels.add(BJDLQWD);
|
|
|
- codels.add(BJDJWD);
|
|
|
- codels.add(BJKZGWD);
|
|
|
-
|
|
|
- codels.add(TDGWD);
|
|
|
- codels.add(TDJGWD);
|
|
|
-
|
|
|
- codeParentmap.put(CLXSRZYW1, "clx");
|
|
|
- codeParentmap.put(CLXSRZYW2, "clx");
|
|
|
- codeParentmap.put(CLXRKYW, "clx");
|
|
|
- codeParentmap.put(CLXYW, "clx");
|
|
|
-
|
|
|
- codeParentmap.put(FDJZCWDA, "fdj");
|
|
|
- codeParentmap.put(FDJZCWDB, "fdj");
|
|
|
- codeParentmap.put(FDJUXYZWD, "fdj");
|
|
|
- codeParentmap.put(FDJVXYZWD, "fdj");
|
|
|
- codeParentmap.put(FDJWXYZWD, "fdj");
|
|
|
- codeParentmap.put(FDJLQFWD, "fdj");
|
|
|
-
|
|
|
- codeParentmap.put(BJDRQWD, "bj");
|
|
|
- codeParentmap.put(BJDRDY, "bj");
|
|
|
- codeParentmap.put(BJDLQWD, "bj");
|
|
|
- codeParentmap.put(BJDJWD, "bj");
|
|
|
- codeParentmap.put(BJKZGWD, "bj");
|
|
|
-
|
|
|
- codeParentmap.put(TDGWD, "zk");
|
|
|
- codeParentmap.put(TDJGWD, "zk");
|
|
|
-
|
|
|
- codenamemap.put(CLXSRZYW1, "齿轮箱输入轴油温1");
|
|
|
- codenamemap.put(CLXSRZYW2, "齿轮箱输入轴油温2");
|
|
|
- codenamemap.put(CLXRKYW, "齿轮箱入口温度");
|
|
|
- codenamemap.put(CLXYW, "齿轮箱油温");
|
|
|
-
|
|
|
- codenamemap.put(FDJZCWDA, "发电机轴承温度A");
|
|
|
- codenamemap.put(FDJZCWDB, "发电机轴承温度B");
|
|
|
- codenamemap.put(FDJUXYZWD, "发电机U相绕组温度");
|
|
|
- codenamemap.put(FDJVXYZWD, "发电机V相绕组温度");
|
|
|
- codenamemap.put(FDJWXYZWD, "发电机W相绕组温度");
|
|
|
- codenamemap.put(FDJLQFWD, "发电机冷却风温度");
|
|
|
-
|
|
|
- codenamemap.put(BJDRQWD, "变浆电容器温度");
|
|
|
- codenamemap.put(BJDRDY, "变浆电容温度");
|
|
|
- codenamemap.put(BJDLQWD, "变浆电流器温度");
|
|
|
- codenamemap.put(BJDJWD, "电机温度");
|
|
|
- codenamemap.put(BJKZGWD, "变浆控制柜温度");
|
|
|
-
|
|
|
- codenamemap.put(TDGWD, "塔底柜温度");
|
|
|
- codenamemap.put(TDJGWD, "塔顶机柜温度");
|
|
|
+ codels.add(ContantXk.AI042);
|
|
|
+ codels.add(ContantXk.AI043);
|
|
|
+ codels.add(ContantXk.AI038);
|
|
|
+ codels.add(ContantXk.AI039);
|
|
|
+
|
|
|
+ codels.add(ContantXk.AI092);
|
|
|
+ codels.add(ContantXk.AI062);
|
|
|
+ codels.add(ContantXk.AI004);
|
|
|
+ codels.add(ContantXk.AI006);
|
|
|
+ codels.add(ContantXk.AI008);
|
|
|
+ codels.add(ContantXk.AI059);
|
|
|
+
|
|
|
+ codels.add(ContantXk.AI050);
|
|
|
+ codels.add(ContantXk.AI076);
|
|
|
+ codels.add(ContantXk.AI020);
|
|
|
+ codels.add(ContantXk.AI045);
|
|
|
+ codels.add(ContantXk.AI029);
|
|
|
+
|
|
|
+ codels.add(ContantXk.AI085);
|
|
|
+ codels.add(ContantXk.AI099);
|
|
|
+
|
|
|
+ codeParentmap.put(ContantXk.AI042, "clx");
|
|
|
+ codeParentmap.put(ContantXk.AI043, "clx");
|
|
|
+ codeParentmap.put(ContantXk.AI038, "clx");
|
|
|
+ codeParentmap.put(ContantXk.AI039, "clx");
|
|
|
+
|
|
|
+ codeParentmap.put(ContantXk.AI092, "fdj");
|
|
|
+ codeParentmap.put(ContantXk.AI062, "fdj");
|
|
|
+ codeParentmap.put(ContantXk.AI004, "fdj");
|
|
|
+ codeParentmap.put(ContantXk.AI006, "fdj");
|
|
|
+ codeParentmap.put(ContantXk.AI008, "fdj");
|
|
|
+ codeParentmap.put(ContantXk.AI059, "fdj");
|
|
|
+
|
|
|
+ codeParentmap.put(ContantXk.AI050, "bj");
|
|
|
+ codeParentmap.put(ContantXk.AI076, "bj");
|
|
|
+ codeParentmap.put(ContantXk.AI020, "bj");
|
|
|
+ codeParentmap.put(ContantXk.AI045, "bj");
|
|
|
+ codeParentmap.put(ContantXk.AI029, "bj");
|
|
|
+
|
|
|
+ codeParentmap.put(ContantXk.AI085, "zk");
|
|
|
+ codeParentmap.put(ContantXk.AI099, "zk");
|
|
|
+
|
|
|
+ codenamemap.put(ContantXk.AI042, "齿轮箱输入轴油温1");
|
|
|
+ codenamemap.put(ContantXk.AI043, "齿轮箱输入轴油温2");
|
|
|
+ codenamemap.put(ContantXk.AI038, "齿轮箱入口温度");
|
|
|
+ codenamemap.put(ContantXk.AI039, "齿轮箱油温");
|
|
|
+
|
|
|
+ codenamemap.put(ContantXk.AI092, "发电机轴承温度A");
|
|
|
+ codenamemap.put(ContantXk.AI062, "发电机轴承温度B");
|
|
|
+ codenamemap.put(ContantXk.AI004, "发电机U相绕组温度");
|
|
|
+ codenamemap.put(ContantXk.AI006, "发电机V相绕组温度");
|
|
|
+ codenamemap.put(ContantXk.AI008, "发电机W相绕组温度");
|
|
|
+ codenamemap.put(ContantXk.AI059, "发电机冷却风温度");
|
|
|
+
|
|
|
+ codenamemap.put(ContantXk.AI050, "变浆电容器温度");
|
|
|
+ codenamemap.put(ContantXk.AI076, "变浆电容温度");
|
|
|
+ codenamemap.put(ContantXk.AI020, "变浆电流器温度");
|
|
|
+ codenamemap.put(ContantXk.AI045, "电机温度");
|
|
|
+ codenamemap.put(ContantXk.AI029, "变浆控制柜温度");
|
|
|
+
|
|
|
+ codenamemap.put(ContantXk.AI085, "塔底柜温度");
|
|
|
+ codenamemap.put(ContantXk.AI099, "塔顶机柜温度");
|
|
|
}
|
|
|
|
|
|
private int setPointValue(String step,Map<String, Double> pointmap) {
|