封装遍历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);
            }

posted on 2015-04-01 11:25  静以修身!  阅读(647)  评论(0编辑  收藏  举报

导航