/** 将面积,套数,金额合并 */ private void listHeb( List<MonthReportVO> tsList, List<Domain> quJianList, String ny, String city, int i, int y) { listCityMc(tsList); if (tsList.size() < quJianList.size()) { int flag = 0; for (int j = 0; j < quJianList.size(); j++) { flag = 0; for (int jj = 0; jj < tsList.size(); jj++) { if (quJianList.get(j).getName().equals(tsList.get(jj).getCityMc())) { flag++; } } if (flag == 0) { MonthReportVO vo = new MonthReportVO(); vo.setCityMc(quJianList.get(j).getName()); vo.setNy(ny); vo.setNum(0.00); tsList.add(vo); } } } for (int kk = 0; kk < tsList.size(); kk++) { tsList.get(kk).setNy(ny); tsList.get(kk).setCityName(city); tsList .get(kk) .setVx( city + tsList.get(kk).getCityMc().replace("<=", "").replace(">", "") + "-" + String.valueOf(i) + "-" + String.valueOf(y)); } }
/** * 为没有值的月份补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); } } }