81,091
社区成员
发帖
与我相关
我的任务
分享
//DAO层我的订单的个数统计
public Integer findByCountUid(Integer uid) {
String hql="select count(*) from Order o where o.user.uid=? ";
List<Long> list= this.getHibernateTemplate().find(hql,uid);
return list.get(0).intValue();
}