HQuery hquery=new HQuery();
String hsql="dbo.f_ConcatPartys("+org_id+",'"+date_from+"','"+date_to+"') from [Table] as a where a.date_f >='"+date_from+"' and a.date_t <= '"+date_to+"' and group by a.org_id";
hquery.setQueryString(hsql);
List _list=this.find(hquery);
报错:
net.sf.hibernate.QueryException: undefined alias: f_ConcatPartys [select dbo.f_ConcatPartys(98336778,'20080101','20080101') from ....