String hql = "select count(*) from DeviceInfo device where device.orderStr=0";
Long count = (Long)getHibernateTemplate().find(hql).listIterator().next();
return count.intValue();
String hql = "select count(*) from DeviceInfo device where device.orderStr=0";
Long count = (Long)getHibernateTemplate().find(hql).listIterator().next();
return count.intValue();