/** * 为没有值的月份补0 * * @param bqList * @param month * @param startTime */ private void bu0(List<MonthReportVO> bqList, int month, String startTime) { String nyStr = ""; for (int i = 0; i < bqList.size(); i++) { nyStr = nyStr + bqList.get(i).getNy() + " "; } for (int i = 0; i <= month; i++) { String stStr = TimeUtil.operateMonthToString2(startTime, i, "add"); if (nyStr.indexOf(stStr) < 0) { MonthReportVO vo = new MonthReportVO(); vo.setNy(stStr); vo.setTaoshu(0); vo.setArea(0.00); vo.setJiner(0.00); bqList.add(vo); } } }
private void jshj( List<MonthReportVO> hjList, List<MonthReportVO> syqList, List<MonthReportVO> dyList, List<MonthReportVO> dyuList, List<MonthReportVO> ygList, List<MonthReportVO> qtList) { MonthReportVO hjvo = new MonthReportVO(); hjvo.setArea( syqList.get(0).getArea() + dyList.get(0).getArea() + dyuList.get(0).getArea() + ygList.get(0).getArea() + qtList.get(0).getArea()); hjvo.setTaoshu( syqList.get(0).getTaoshu() + dyList.get(0).getTaoshu() + dyuList.get(0).getTaoshu() + ygList.get(0).getTaoshu() + qtList.get(0).getTaoshu()); hjvo.setZbm("100"); hjvo.setZbt("100"); hjList.add(hjvo); }