/** * 查找热门商品 */@Overridepublic Listview层:findHotShop() { String hql = "select * from (select t.* from MEIJIA_MODEL_PROD_COMMON_PROP " + "t order by t.pcp_salenumber desc) t1 where rownum<=3"; SessionFactory sessionFactory = this.getHibernateTemplate().getSessionFactory(); Session session = sessionFactory.openSession(); SQLQuery query = session.createSQLQuery(hql); return query.list(); }
热门商品推荐 ${msg }
- 商品名称:${prod.name} 销量:${prod.saleNum }
热门商品推荐 ${msg }
- 商品名称:${prod[1]} 销量:${prod[11] }