use of com.netsteadfast.greenstep.service.ISysService in project bamboobsc by billchen198318.
the class ApplicationSiteUtils method getHost.
@SuppressWarnings("unchecked")
public static String getHost(String sysId) {
String host = "";
ISysService<SysVO, TbSys, String> sysService = (ISysService<SysVO, TbSys, String>) AppContext.getBean("core.service.SysService");
SysVO sys = new SysVO();
sys.setSysId(sysId);
try {
DefaultResult<SysVO> result = sysService.findByUK(sys);
if (result.getValue() == null) {
return "";
}
sys = result.getValue();
host = sys.getHost();
} catch (ServiceException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
return host;
}
Aggregations