@SuppressWarnings("unchecked") public List<WebSearchInfo> findsearchInfoByNameZhTw(String nameZhTw, WebEmployee webEmployee) { String hql = daoimpl.getHql("WebSearchInfo", webEmployee); hql += "and isDataEffid=1 and nameZhTw like '%" + nameZhTw + "%'"; Query query = this.getSession().createQuery(hql); List<WebSearchInfo> retList = query.list(); return retList; }
@SuppressWarnings("unchecked") public List<WebSearchInfo> findSearchInfoAll(WebEmployee webEmployee) { String hql = daoimpl.getHql("WebSearchInfo", webEmployee); hql += " and isDataEffid=1 "; Query query = this.getSession().createQuery(hql); List<WebSearchInfo> retList = query.list(); return retList; }