封装遍历Group by查询后的List
封装遍历Group by查询后的List
for (int i = 0; i < list.size(); i++) {
Object[] row = (Object[]) list.get(i); //取出list中的对象数组
ProductBean pb=new ProductBean();//封装
pb.setProId(row[0].toString());
pb.setCountNumber(row[1].toString());
pb.setCountMoney(row[2].toString());
wlist.add(pb);
}