| | |
| | | arr[i-startYear] = i; |
| | | } |
| | | List<Map> result = reportFeeInnerServiceSMOImpl.repostPaidInFee(feeQueryParams); |
| | | List<Map> resultLT = reportFeeInnerServiceSMOImpl.repostPaidInFeeTwo(feeQueryParams); |
| | | for (Map map : result) { |
| | | if (map.containsKey("fee_type_cd") && map.get("fee_type_cd").equals("630000007")){ |
| | | for (Map map2 : resultLT) { |
| | | if (!map.get("费用所属年份").equals("类型总计") && map2.containsKey("年份")&&((Long)map2.get("年份")) == Integer.parseInt((String)map.get("费用所属年份"))){ |
| | | map.put("该年应缴总额",((BigDecimal)map.get("该年应缴总额")).add((BigDecimal)map2.get("应缴金额"))); |
| | | map.put(map2.get("年份")+"年实缴", ((BigDecimal)map.get(map2.get("年份")+"年实缴")).add((BigDecimal)map2.get("实缴金额"))); |
| | | } |
| | | if (!map.get("费用所属年份").equals("类型总计") && (Long)map2.get("年份") == currentYear && map2.containsKey("月份") && Integer.parseInt((String) map.get("费用所属年份")) == currentYear){ |
| | | Long month = (Long)map2.get("月份"); |
| | | map.put("当年"+(month > 9 ? month : "0" + month)+"月实缴",((BigDecimal)map.get("当年"+(month > 9 ? month : "0" + month)+"月实缴")).add((BigDecimal) map2.get("实缴金额"))); |
| | | } |
| | | |
| | | if (map.get("费用所属年份").equals("类型总计") && map2.containsKey("年份")){ |
| | | map.put("该年应缴总额",((BigDecimal)map.get("该年应缴总额")).add((BigDecimal)map2.get("应缴金额"))); |
| | | map.put(map2.get("年份")+"年实缴", ((BigDecimal)map.get(map2.get("年份")+"年实缴")).add((BigDecimal)map2.get("实缴金额"))); |
| | | } |
| | | if (map.get("费用所属年份").equals("类型总计") && (Long)map2.get("年份") == currentYear && map2.containsKey("月份")){ |
| | | Long month = (Long)map2.get("月份"); |
| | | map.put("当年"+(month > 9 ? month : "0" + month)+"月实缴",((BigDecimal)map.get("当年"+(month > 9 ? month : "0" + month)+"月实缴")).add((BigDecimal) map2.get("实缴金额"))); |
| | | } |
| | | } |
| | | BigDecimal allPayable = new BigDecimal(0); |
| | | for (int a : arr){ |
| | | BigDecimal bigDecimal = (BigDecimal) map.get(a+"年实缴"); |
| | | allPayable=allPayable.add(bigDecimal); |
| | | } |
| | | map.put("每月费用", new BigDecimal(((BigDecimal) map.get("该年应缴总额")).doubleValue() / ((Long) map.get("应收月份数")))); |
| | | map.put("当年收缴率", new BigDecimal(allPayable.doubleValue() / ((BigDecimal) map.get("该年应缴总额")).doubleValue() * 100)); |
| | | } |
| | | } |
| | | DictDto dictDto = new DictDto(); |
| | | dictDto.setTableName("pay_fee_config"); |
| | | dictDto.setTableColumns("fee_type_cd"); |
| | |
| | | doubles[4] = doubleUse(((BigDecimal) map.get("折扣金额")).doubleValue()); |
| | | int inde = 0; |
| | | for (int in : arr){ |
| | | if(in < currentYear && (in+"").equals(map.get("费用所属年份"))){ |
| | | if(in < currentYear && !(map.get("费用所属年份").equals("类型总计"))){ |
| | | inde++; |
| | | doubles[in - startYear + 5] = doubleUse(((BigDecimal) map.get(i + "年实缴")).doubleValue()); |
| | | doubles[in - startYear + 5] = doubleUse(((BigDecimal) map.get(in + "年实缴")).doubleValue()); |
| | | } |
| | | } |
| | | doubles[inde + 5] =doubleUse(((BigDecimal) map.get("当年预算")).doubleValue()); |
| | |
| | | linkedList.add(feeDto1); |
| | | reportFeeDtoLists.add(linkedList); |
| | | } |
| | | if (ind == 3){ |
| | | if (ind == 2){ |
| | | // fee.setCurYear("停车费合计(3+...+7)"); |
| | | // fee.setReport(colByCar); |
| | | // carFeeList.add(fee); |
| | | reportFeeDtoLists.add(carFeeList); |
| | | } |
| | | if (ind == 8){ |
| | | if (ind == 7){ |
| | | // fee2.setCurYear("其他类合计(8+...+22)"); |
| | | // fee2.setReport(colByOther); |
| | | // otherFeeList.add(fee2); |