|
@@ -988,10 +988,9 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
//获取所有项目当年每月的实际回款
|
|
|
List<BigDecimal> returned2 = returnedInfoService.getAllMonthReturnedByYear(y,2);
|
|
|
//获取每月实际的人工支出
|
|
|
-// List<BigDecimal> staffCost = budgetService.getAllMonthStaffCostByYear(y);
|
|
|
Map<Integer, BigDecimal> costMap = employeeTaskInfoService.getAllEmployeeSalaryByYear4(y);
|
|
|
//获取每月实际的维护支出
|
|
|
- List<BigDecimal> maintainCost = budgetService.getAllMonthMaintainCostByYear(y);
|
|
|
+ Map<Integer, BigDecimal> maintainCost = employeeTaskInfoService.getAllMaintainSalaryByYear4(y);
|
|
|
//获取每月实际的报销支出
|
|
|
List<BigDecimal> reimburse = projectInfoService.getAllMonthReimburseByYear(y);
|
|
|
//结果集
|
|
@@ -1036,11 +1035,16 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
c5 = c5.add(returned2.get(i-1));
|
|
|
//实际每月支出
|
|
|
BigDecimal big = new BigDecimal(0);
|
|
|
+ //人工支出
|
|
|
if (costMap != null && costMap.get(i) != null){
|
|
|
big = costMap.get(i);
|
|
|
}
|
|
|
- vo1.setDisburse3(big.add(maintainCost.get(i-1).add(reimburse.get(i-1))));
|
|
|
- c6 = c6.add(big.add(maintainCost.get(i-1).add(reimburse.get(i-1))));
|
|
|
+ //维护支出
|
|
|
+ if (maintainCost != null && maintainCost.get(i) != null){
|
|
|
+ big = big.add(maintainCost.get(i));
|
|
|
+ }
|
|
|
+ vo1.setDisburse3(big.add(reimburse.get(i-1)));
|
|
|
+ c6 = c6.add(big.add(reimburse.get(i-1)));
|
|
|
|
|
|
list.add(vo1);
|
|
|
}
|
|
@@ -1071,8 +1075,8 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
Map<Long, Map<Integer, BigDecimal>> budgetMap = employeeTaskInfoService.getAllBudgetSalaryByYear2(y);
|
|
|
//实际人工支出
|
|
|
Map<Long, Map<Integer, BigDecimal>> costMap = employeeTaskInfoService.getAllEmployeeSalaryByYear5(y);
|
|
|
- //维护支出,返回null证明没有
|
|
|
- Map<Integer, List<BigDecimal>> maintainMap = budgetService.getAllMaintainCost9(y);
|
|
|
+ //维护支出
|
|
|
+ Map<Long, Map<Integer, BigDecimal>> maintainMap = employeeTaskInfoService.getAllMaintainSalaryByYear5(y);
|
|
|
//报销支出
|
|
|
Map<Long, Map<Integer, BigDecimal>> reimburseMap = projectInfoService.getThisYearAllReimburseByYear2(y);
|
|
|
//循环12个月,为每个月设置值
|
|
@@ -1095,6 +1099,11 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
if (costMap != null && costMap.get(dept.getId()) != null && costMap.get(dept.getId()).get(i) != null){
|
|
|
b2 = costMap.get(dept.getId()).get(i);
|
|
|
}
|
|
|
+ //维护支出
|
|
|
+ if (maintainMap != null && maintainMap.get(dept.getId()) != null && maintainMap.get(dept.getId()).get(i) != null){
|
|
|
+ b2 = b2.add(maintainMap.get(dept.getId()).get(i));
|
|
|
+ }
|
|
|
+ //报销支出
|
|
|
if (reimburseMap != null && reimburseMap.get(dept.getId()) != null && reimburseMap.get(dept.getId()).get(i) != null){
|
|
|
b2 = b2.add(reimburseMap.get(dept.getId()).get(i));
|
|
|
}
|
|
@@ -1934,7 +1943,7 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
//人工支出
|
|
|
BigDecimal disburse = employeeTaskInfoService.getAllEmployeeSalaryByYear(y);
|
|
|
//维护支出
|
|
|
- BigDecimal maintainCost = budgetService.getAllMaintainCost(y);
|
|
|
+ BigDecimal maintainCost = employeeTaskInfoService.getAllMaintainSalaryByYear(y);
|
|
|
//报销支出
|
|
|
BigDecimal decimal = projectInfoService.getThisYearReimburse(y);
|
|
|
vo.setPracticalOutput(disburse.add(maintainCost).add(decimal));
|