|
@@ -1002,7 +1002,8 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
//获取所有项目当年每月的实际回款
|
|
|
List<BigDecimal> returned2 = returnedInfoService.getAllMonthReturnedByYear(y,2);
|
|
|
//获取每月实际的人工支出
|
|
|
- List<BigDecimal> staffCost = budgetService.getAllMonthStaffCostByYear(y);
|
|
|
+// List<BigDecimal> staffCost = budgetService.getAllMonthStaffCostByYear(y);
|
|
|
+ Map<Integer, BigDecimal> costMap = employeeTaskInfoService.getAllEmployeeSalaryByYear4(y);
|
|
|
//获取每月实际的维护支出
|
|
|
List<BigDecimal> maintainCost = budgetService.getAllMonthMaintainCostByYear(y);
|
|
|
//获取每月实际的报销支出
|
|
@@ -1048,8 +1049,12 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
vo1.setIncome3(returned2.get(i-1));
|
|
|
c5 = c5.add(returned2.get(i-1));
|
|
|
//实际每月支出
|
|
|
- vo1.setDisburse3(staffCost.get(i-1).add(maintainCost.get(i-1).add(reimburse.get(i-1))));
|
|
|
- c6 = c6.add(staffCost.get(i-1).add(maintainCost.get(i-1).add(reimburse.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))));
|
|
|
|
|
|
list.add(vo1);
|
|
|
}
|
|
@@ -1872,7 +1877,7 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
vo.setPracticalInput(yearReturned);
|
|
|
//获取当年所有实际支出: 人工支出+维护支出+报销支出
|
|
|
//人工支出
|
|
|
- BigDecimal disburse = budgetService.getYearStaffDisburse(y);
|
|
|
+ BigDecimal disburse = employeeTaskInfoService.getAllEmployeeSalaryByYear(y);
|
|
|
//维护支出
|
|
|
BigDecimal maintainCost = budgetService.getAllMaintainCost(y);
|
|
|
//报销支出
|
|
@@ -1901,7 +1906,7 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
}
|
|
|
List<BigDecimal> costList = disburseService.budgetCostByYear(annualId);
|
|
|
//一年的实际人工支出,按月返回指定年的
|
|
|
- List<BigDecimal> staffCostList = budgetService.getAllMonthStaffCostByYear2(y);
|
|
|
+ Map<Integer, BigDecimal> costMap = employeeTaskInfoService.getAllBudgetSalaryByYear(y);
|
|
|
//管理成本预算支出 = 年度经营的非人工成本,按月返回指定年的
|
|
|
List<BigDecimal> notCostList = disburseService.budgetNotCostByYear(annualId);
|
|
|
//管理成本实际支出 = 指定年的每个月报销,按月返回
|
|
@@ -1918,8 +1923,12 @@ public class AnnualBudgetServiceImpl extends BaseServiceImpl<AnnualBudgetMapper,
|
|
|
vo.setDisburse1(costList.get(i));
|
|
|
b1 = b1.add(costList.get(i));
|
|
|
//设置人工成本实际支出
|
|
|
- vo.setDisburse2(staffCostList.get(i));
|
|
|
- b2 = b2.add(staffCostList.get(i));
|
|
|
+ BigDecimal big = new BigDecimal(0);
|
|
|
+ if (costMap != null && costMap.get(i+1) != null){
|
|
|
+ big = costMap.get(i+1);
|
|
|
+ }
|
|
|
+ vo.setDisburse2(big);
|
|
|
+ b2 = b2.add(big);
|
|
|
//设置管理成本预算支出
|
|
|
vo.setDisburse3(notCostList.get(i));
|
|
|
b3 = b3.add(notCostList.get(i));
|