ejb ql 返回object

时间:2023-03-09 05:56:27
ejb ql 返回object
String sqlStr="select t.car_kind,count(t) from table1 t where t.jb_date='"+jb_date+"' and t.state='"+state+"' and t.sbzt='1' and t.bureau_code='"+ljdm+"' group by t.car_kind";

List<Object[]> ob = DdmlCommServiceFactory.getInstance()
.getCommonRemote().getListByEjbQl(sqlStr, new String[] {},
new Object[] {})
//获取值的方式
String.valueOf(ob.get(i)[1]);

相关文章