|
@@ -63,6 +63,8 @@ public class AlarmCtService {
|
|
|
|
|
|
if (!alarmVoList.isEmpty()) {
|
|
if (!alarmVoList.isEmpty()) {
|
|
for (AlarmVo vo : alarmVoList) {
|
|
for (AlarmVo vo : alarmVoList) {
|
|
|
|
+
|
|
|
|
+
|
|
alarmTsService.createTable(vo.getTbName(), vo.getAlarmid(), vo.getAlarmtype(),
|
|
alarmTsService.createTable(vo.getTbName(), vo.getAlarmid(), vo.getAlarmtype(),
|
|
vo.getCharacteristic(), vo.getComponents(),
|
|
vo.getCharacteristic(), vo.getComponents(),
|
|
vo.getDescription(),
|
|
vo.getDescription(),
|
|
@@ -74,23 +76,37 @@ public class AlarmCtService {
|
|
vo.getResettable(), vo.getStationid(),
|
|
vo.getResettable(), vo.getStationid(),
|
|
vo.getStationname(), vo.getSubcomponents(),
|
|
vo.getStationname(), vo.getSubcomponents(),
|
|
vo.getSuffix(), vo.getTagid(),
|
|
vo.getSuffix(), vo.getTagid(),
|
|
- vo.getTriggertype(), vo.getUniformcode(),
|
|
|
|
- vo.getSuperTableName(),vo.getName(),
|
|
|
|
- vo.getNemCode(),vo.getFaultCause(),vo.getResolvent(),vo.getFaultType(),vo.getAname());
|
|
|
|
- alarmTsService.updateTable(vo.getTbName(), vo.getAlarmid(), vo.getAlarmtype(),
|
|
|
|
- vo.getCharacteristic(), vo.getComponents(),
|
|
|
|
- vo.getDescription(),
|
|
|
|
- vo.getDeviceid(), vo.getDevicename(),
|
|
|
|
- vo.getDevicetype(), vo.getEnabled(),
|
|
|
|
- vo.getLineid(), vo.getLinename(),
|
|
|
|
- vo.getModelId(), vo.getProjectid(),
|
|
|
|
- vo.getProjectname(), vo.getRank(),
|
|
|
|
- vo.getResettable(), vo.getStationid(),
|
|
|
|
- vo.getStationname(), vo.getSubcomponents(),
|
|
|
|
- vo.getSuffix(), vo.getTagid(),
|
|
|
|
vo.getTriggertype(), vo.getUniformcode(), vo.getSuperTableName(),
|
|
vo.getTriggertype(), vo.getUniformcode(), vo.getSuperTableName(),
|
|
vo.getName(),
|
|
vo.getName(),
|
|
- vo.getNemCode(),vo.getFaultCause(),vo.getResolvent(),vo.getFaultType(),vo.getAname());
|
|
|
|
|
|
+ vo.getNemCode(), vo.getFaultCause(), vo.getResolvent(), vo.getFaultType(), vo.getAname());
|
|
|
|
+// alarmTsService.createTable(vo.getTbName(), vo.getAlarmid(), vo.getAlarmtype(),
|
|
|
|
+// vo.getCharacteristic(), vo.getComponents(),
|
|
|
|
+// vo.getDescription(),
|
|
|
|
+// vo.getDeviceid(), vo.getDevicename(),
|
|
|
|
+// vo.getDevicetype(), vo.getEnabled(),
|
|
|
|
+// vo.getLineid(), vo.getLinename(),
|
|
|
|
+// vo.getModelId(), vo.getProjectid(),
|
|
|
|
+// vo.getProjectname(), vo.getRank(),
|
|
|
|
+// vo.getResettable(), vo.getStationid(),
|
|
|
|
+// vo.getStationname(), vo.getSubcomponents(),
|
|
|
|
+// vo.getSuffix(), vo.getTagid(),
|
|
|
|
+// vo.getTriggertype(), vo.getUniformcode(),
|
|
|
|
+// vo.getSuperTableName(),vo.getName(),
|
|
|
|
+// vo.getNemCode(),vo.getFaultCause(),vo.getResolvent(),vo.getFaultType(),vo.getAname());
|
|
|
|
+// alarmTsService.updateTable(vo.getTbName(), vo.getAlarmid(), vo.getAlarmtype(),
|
|
|
|
+// vo.getCharacteristic(), vo.getComponents(),
|
|
|
|
+// vo.getDescription(),
|
|
|
|
+// vo.getDeviceid(), vo.getDevicename(),
|
|
|
|
+// vo.getDevicetype(), vo.getEnabled(),
|
|
|
|
+// vo.getLineid(), vo.getLinename(),
|
|
|
|
+// vo.getModelId(), vo.getProjectid(),
|
|
|
|
+// vo.getProjectname(), vo.getRank(),
|
|
|
|
+// vo.getResettable(), vo.getStationid(),
|
|
|
|
+// vo.getStationname(), vo.getSubcomponents(),
|
|
|
|
+// vo.getSuffix(), vo.getTagid(),
|
|
|
|
+// vo.getTriggertype(), vo.getUniformcode(), vo.getSuperTableName(),
|
|
|
|
+// vo.getName(),
|
|
|
|
+// vo.getNemCode(),vo.getFaultCause(),vo.getResolvent(),vo.getFaultType(),vo.getAname());
|
|
// AlarmTag po = new AlarmTag();
|
|
// AlarmTag po = new AlarmTag();
|
|
// po.setId(vo.getTbName());
|
|
// po.setId(vo.getTbName());
|
|
// po.setVal(0.0);
|
|
// po.setVal(0.0);
|
|
@@ -194,7 +210,7 @@ public class AlarmCtService {
|
|
vo.setSuperTableName(AlarmSuperTalbeType.CT.getCode());
|
|
vo.setSuperTableName(AlarmSuperTalbeType.CT.getCode());
|
|
vo.setVal(0);
|
|
vo.setVal(0);
|
|
|
|
|
|
- vo.setCharacteristic("自定义");
|
|
|
|
|
|
+ vo.setCharacteristic(alarm.getName());
|
|
vo.setFaultCause(alarm.getDescription());
|
|
vo.setFaultCause(alarm.getDescription());
|
|
vo.setResolvent(alarm.getExpression());
|
|
vo.setResolvent(alarm.getExpression());
|
|
alarmVoList.add(vo);
|
|
alarmVoList.add(vo);
|
|
@@ -273,7 +289,7 @@ public class AlarmCtService {
|
|
vo.setSuperTableName(AlarmSuperTalbeType.CT.getCode());
|
|
vo.setSuperTableName(AlarmSuperTalbeType.CT.getCode());
|
|
vo.setVal(0);
|
|
vo.setVal(0);
|
|
|
|
|
|
- vo.setCharacteristic("自定义");
|
|
|
|
|
|
+ vo.setCharacteristic(alarm.getName());
|
|
vo.setFaultCause(alarm.getDescription());
|
|
vo.setFaultCause(alarm.getDescription());
|
|
vo.setResolvent(alarm.getExpression());
|
|
vo.setResolvent(alarm.getExpression());
|
|
alarmVoList.add(vo);
|
|
alarmVoList.add(vo);
|
|
@@ -406,7 +422,7 @@ public class AlarmCtService {
|
|
vo.setVal(0);
|
|
vo.setVal(0);
|
|
vo.setOval(0);
|
|
vo.setOval(0);
|
|
|
|
|
|
- vo.setCharacteristic("自定义");
|
|
|
|
|
|
+ vo.setCharacteristic(alarm.getName());
|
|
vo.setFaultCause(alarm.getDescription());
|
|
vo.setFaultCause(alarm.getDescription());
|
|
vo.setResolvent(alarm.getExpression());
|
|
vo.setResolvent(alarm.getExpression());
|
|
alarmVoList.add(vo);
|
|
alarmVoList.add(vo);
|