求解觉求帮助 dao实现类:public List queryNumber(String name)
{
String sql="select * from userinfo a left outer join buyerin b on a.buyerid = b.buyerid where a.Aname=?";
SQLQuery query = sessionFactory.getCurrentSession().createSQLQuery(sql);
query.setString(0, name);
query.addEntity(UserInfo.class);
List rs= query.list();
return rs;
}
service:public boolean query(String name,String buyerid,String adminid){
List rs=userInfoDao.queryNumber(name);