|
@@ -225,7 +225,7 @@ public class ProjectInfoServiceImpl extends BaseServiceImpl<ProjectInfoMapper, C
|
|
//获取项目所有的维护预算
|
|
//获取项目所有的维护预算
|
|
Set<Long> set = budgetService.getAllMaintainBudgetId(id);
|
|
Set<Long> set = budgetService.getAllMaintainBudgetId(id);
|
|
//从预算中排除维护预算
|
|
//从预算中排除维护预算
|
|
- budgets = budgets.stream().filter(l->!set.contains(l.getId())).collect(Collectors.toList());
|
|
|
|
|
|
+// budgets = budgets.stream().filter(l->!set.contains(l.getId())).collect(Collectors.toList());
|
|
//获取项目所有维护预算
|
|
//获取项目所有维护预算
|
|
Map<Integer, BigDecimal> map = budgetService.getAllMaintainCost6(id);
|
|
Map<Integer, BigDecimal> map = budgetService.getAllMaintainCost6(id);
|
|
Boolean isMaintain = true;
|
|
Boolean isMaintain = true;
|
|
@@ -249,7 +249,7 @@ public class ProjectInfoServiceImpl extends BaseServiceImpl<ProjectInfoMapper, C
|
|
vo.setProjectId(id);
|
|
vo.setProjectId(id);
|
|
vo.setCostType(i);
|
|
vo.setCostType(i);
|
|
vo.setCostTypeValue(costTypeDict.get(i-1).getDictName());
|
|
vo.setCostTypeValue(costTypeDict.get(i-1).getDictName());
|
|
- List<ProjectCostBudget> costBudgets = budgetMap.get(i-1);
|
|
|
|
|
|
+ List<ProjectCostBudget> costBudgets = budgetMap.get(i);
|
|
BigDecimal bigDecimal = new BigDecimal(0);
|
|
BigDecimal bigDecimal = new BigDecimal(0);
|
|
if (costBudgets != null && costBudgets.size() > 0){
|
|
if (costBudgets != null && costBudgets.size() > 0){
|
|
for (ProjectCostBudget budget : costBudgets) {
|
|
for (ProjectCostBudget budget : costBudgets) {
|
|
@@ -257,14 +257,14 @@ public class ProjectInfoServiceImpl extends BaseServiceImpl<ProjectInfoMapper, C
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//加上每个部门的维护预算
|
|
//加上每个部门的维护预算
|
|
- if (isMaintain){
|
|
|
|
- BigDecimal decimal = map.get(i);
|
|
|
|
- if (decimal != null){
|
|
|
|
- bigDecimal = bigDecimal.add(decimal);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// if (isMaintain){
|
|
|
|
+// BigDecimal decimal = map.get(i);
|
|
|
|
+// if (decimal != null){
|
|
|
|
+// bigDecimal = bigDecimal.add(decimal);
|
|
|
|
+// }
|
|
|
|
+// }
|
|
vo.setBudgetCost(bigDecimal);
|
|
vo.setBudgetCost(bigDecimal);
|
|
- //设置费用分类实际费用,目前只设置人工
|
|
|
|
|
|
+ //设置费用分类实际费用,目前设置人工,维护支出,报销支出
|
|
BigDecimal practicalCost = new BigDecimal(0);
|
|
BigDecimal practicalCost = new BigDecimal(0);
|
|
if (practicalList != null && practicalList.size() > 0){
|
|
if (practicalList != null && practicalList.size() > 0){
|
|
for (ProjectCostBudget budget : practicalList) {
|
|
for (ProjectCostBudget budget : practicalList) {
|