|
@@ -1,12 +1,10 @@
|
|
|
package com.gyee.runeconomy.service.EarlyWarning;
|
|
|
|
|
|
import com.gyee.runeconomy.init.CacheContext;
|
|
|
-import com.gyee.runeconomy.model.ProEconAlarmPlan;
|
|
|
-import com.gyee.runeconomy.model.ProEconAlarmReal;
|
|
|
-import com.gyee.runeconomy.model.ProEconAlarmRule;
|
|
|
-import com.gyee.runeconomy.model.ReliabilityIssues;
|
|
|
+import com.gyee.runeconomy.model.*;
|
|
|
import com.gyee.runeconomy.model.auto.ProBasicEquipment;
|
|
|
import com.gyee.runeconomy.model.auto.ProBasicPowerstation;
|
|
|
+import com.gyee.runeconomy.service.ProEconIssPlanService;
|
|
|
import com.gyee.runeconomy.service.auto.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -28,6 +26,8 @@ public class EarlyWarninggetService {
|
|
|
private ProEconAlarmRealService realService;
|
|
|
@Resource
|
|
|
private ProEconAlarmPlanService planService;
|
|
|
+ @Resource
|
|
|
+ private ProEconIssPlanService proEconIssPlanService;
|
|
|
|
|
|
public Map Electricity(String time, String wpid) throws Exception {
|
|
|
|
|
@@ -113,7 +113,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(mainShaftType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -130,7 +130,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add( generatorType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -147,7 +147,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(gearboxType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -163,7 +163,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(pitchSystemType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -180,7 +180,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(temperatureOtherIssues + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -197,7 +197,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(vibrationType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -213,7 +213,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(mechanicalType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -229,7 +229,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(electricalType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -245,7 +245,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(hydraulicType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -261,7 +261,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(windMeasurementType + ":" + plans.get(0).getProcessMethod());
|
|
|
}
|
|
@@ -277,7 +277,7 @@ public class EarlyWarninggetService {
|
|
|
List<ProEconAlarmReal> realid = realService.getProEconAlarmReal(id);
|
|
|
if (realid.size() > 0){
|
|
|
String alarmPlan = realid.get(0).getAlarmPlan();
|
|
|
- List<ProEconAlarmPlan> plans = planService.selectAlarmPlanByProId(alarmPlan);
|
|
|
+ List<ProEconIssPlan> plans = proEconIssPlanService.selectAlarmPlanByProId(alarmPlan);
|
|
|
if (plans.size() > 0){
|
|
|
jxjyls.add(otherIssues + ":"+ plans.get(0).getProcessMethod());
|
|
|
}
|