|
|
@ -83,11 +83,20 @@ public class T_MonitorServiceImpl implements IT_MonitorService
|
|
|
|
TSetmonitorthresholdvalue tSetmonitorthresholdvalue = new TSetmonitorthresholdvalue();
|
|
|
|
TSetmonitorthresholdvalue tSetmonitorthresholdvalue = new TSetmonitorthresholdvalue();
|
|
|
|
tSetmonitorthresholdvalue.setMonitorId(t_Monitor.getMonitorId());
|
|
|
|
tSetmonitorthresholdvalue.setMonitorId(t_Monitor.getMonitorId());
|
|
|
|
tSetmonitorthresholdvalue.setMonitorType(16);
|
|
|
|
tSetmonitorthresholdvalue.setMonitorType(16);
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
TSetmonitorthresholdvalue setmonitorthresholdvalue = new TSetmonitorthresholdvalue();
|
|
|
|
|
|
|
|
setmonitorthresholdvalue.setMonitorId(t_Monitor.getMonitorId());
|
|
|
|
|
|
|
|
List<TSetmonitorthresholdvalue> tSetmonitorthresholdvalueList = tSetmonitorthresholdvalueService.selectTSetmonitorthresholdvalueList(setmonitorthresholdvalue);
|
|
|
|
|
|
|
|
if (tSetmonitorthresholdvalueList.size() == 0){
|
|
|
|
tSetmonitorthresholdvalueService.insertTSetmonitorthresholdvalue(tSetmonitorthresholdvalue);
|
|
|
|
tSetmonitorthresholdvalueService.insertTSetmonitorthresholdvalue(tSetmonitorthresholdvalue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
return t_MonitorMapper.insertT_Monitor(t_Monitor);
|
|
|
|
return t_MonitorMapper.insertT_Monitor(t_Monitor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|