private String ido;
String hql="from TFxShop where 1=1 ";
Map<String, Object> params = new HashMap<String, Object>();
shoppage = shopService.getInfoForPage(shoppage, hql, params);
List<TFxShop> ls= shoppage.getResult();
if(ls != null && ls.size() > 0){
for(int i = 0; i < ls.size(); i++){
ido += ls.get(i).getId()+",";
}
}
private String ido = "";
第一句换成这个就OK了。
如果有帮助,希望结帖
这是结果:nullff80808154886896015488c3bff9004b,ff80808154e3e6410154e3f273ad000d,40288098559ac7b101559acc34ce0003