hql = hql + " ORDER BY isSystem";
hql4Tot =hql4Tot+" ORDER BY isSystem";
Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession().createQuery(hql);
if ((rows > 0) && (page > 0)) {
query.setFirstResult((page - 1) * rows);
query.setMaxResults(rows);
}
既然是以hibernate分页查询,这里不要是以order排序,否则事实上结果集会有问题