|
@@ -126,54 +126,7 @@ public class AlarmWtService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-// else {
|
|
|
//
|
|
|
-// //临时创建表
|
|
|
-// AlarmVo vo=new AlarmVo();
|
|
|
-// StringBuilder tbName = new StringBuilder();
|
|
|
-// tbName.append(wt.getId()).append("_").append(alarm.getId());
|
|
|
-// vo.setTbName(String.valueOf(tbName));
|
|
|
-// vo.setAlarmid(alarm.getId());
|
|
|
-// vo.setTagid("GF-TZ-SYZ.038200G9911SYB99GI017DB0111PA99RAW01");
|
|
|
-// vo.setAlarmtype(alarm.getAlarmType());
|
|
|
-// vo.setCharacteristic(alarm.getCharacteristic());
|
|
|
-// vo.setComponents(alarm.getComponents());
|
|
|
-// vo.setDescription(alarm.getDescription());
|
|
|
-// vo.setDeviceid(wt.getId());
|
|
|
-// vo.setDevicename(wt.getName());
|
|
|
-// vo.setDevicetype(alarm.getDeviceType());
|
|
|
-// vo.setEnabled(alarm.getEnable());
|
|
|
-// vo.setLineid(wt.getLineId());
|
|
|
-// if(CacheContext.lnmap.containsKey(wt.getLineId()))
|
|
|
-// {
|
|
|
-// ProBasicLine ln=CacheContext.lnmap.get(wt.getLineId());
|
|
|
-// vo.setLinename(ln.getName());
|
|
|
-// }
|
|
|
-// vo.setModelId(wt.getModelId());
|
|
|
-// vo.setProjectid(wt.getProjectId());
|
|
|
-// if(CacheContext.pjmap.containsKey(wt.getProjectId()))
|
|
|
-// {
|
|
|
-// ProBasicProject pj=CacheContext.pjmap.get(wt.getProjectId());
|
|
|
-// vo.setProjectname(pj.getName());
|
|
|
-// }
|
|
|
-// vo.setRank(alarm.getRank());
|
|
|
-// vo.setResettable(alarm.getResetTable());
|
|
|
-// vo.setStationid(wt.getWindpowerstationId());
|
|
|
-// if(CacheContext.wpmap.containsKey(wt.getWindpowerstationId()))
|
|
|
-// {
|
|
|
-// ProBasicPowerstation wp=CacheContext.wpmap.get(wt.getWindpowerstationId());
|
|
|
-// vo.setStationname(wp.getName());
|
|
|
-// }
|
|
|
-// vo.setSubcomponents(alarm.getSubcomponents());
|
|
|
-// vo.setSuffix(alarm.getSuffix());
|
|
|
-// vo.setTriggertype(alarm.getTriggerType());
|
|
|
-// vo.setUniformcode(alarm.getUniformCode());
|
|
|
-// vo.setSuperTableName(AlarmSuperTalbeType.WT.getCode());
|
|
|
-// vo.setVal(0);
|
|
|
-// vo.setOval(0);
|
|
|
-// alarmVoList.add(vo);
|
|
|
-//
|
|
|
-// }
|
|
|
}
|
|
|
}
|
|
|
}
|