private List<LtLotteryHomeRecommendVo> fillData(List<Object[]> obj) { List<LtLotteryHomeRecommendVo> ltvo = new ArrayList<LtLotteryHomeRecommendVo>(); if (obj != null && obj.size() > 0) { for (int i = 0; i < obj.size(); i++) { LtLotteryHomeRecommendVo vo = new LtLotteryHomeRecommendVo(); Object o[] = obj.get(i); if (o[0] != null) { vo.setReId(Long.parseLong(o[0].toString())); } if (o[1] != null) { vo.setReLotteryId(o[1].toString()); } if (o[2] != null) { vo.setReBetMatchId(Long.parseLong(o[2].toString())); } if (o[3] != null) { vo.setReStatus(Integer.parseInt(o[3].toString())); } if (o[4] != null) { vo.setReCreatedTime(StrToDate(o[4].toString())); } if (o[5] != null) { vo.setReUpdateTime(StrToDate(o[5].toString())); } if (o[6] != null) { vo.setSchemeId(Long.parseLong(o[6].toString())); } if (o[7] != null) { vo.setMatchId(Long.parseLong(o[7].toString())); } if (o[8] != null) { vo.setCode(o[8].toString()); } if (o[9] != null) { vo.setPlayId(o[9].toString()); } if (o[10] != null) { vo.setAnnotation(o[10].toString()); } if (o[11] != null) { vo.setReDeadlineTime(StrToDate(o[11].toString())); } ltvo.add(vo); } } return ltvo; }