|
@@ -70,6 +70,9 @@ public class ProjectCostBudgetServiceImpl extends BaseServiceImpl<ProjectCostBud
|
|
|
if (l.getProjectProcess() == null){
|
|
|
throw new ServiceException("请选择项目环节");
|
|
|
}
|
|
|
+ if (l.getApprove() != null && (l.getApprove() == 1 || l.getApprove() == 2)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
l.setProjectId(dto.getProjectId());
|
|
|
l.setUnitType(1);
|
|
|
countMoney(l);
|
|
@@ -88,6 +91,9 @@ public class ProjectCostBudgetServiceImpl extends BaseServiceImpl<ProjectCostBud
|
|
|
if (l.getProjectProcess() == null){
|
|
|
throw new ServiceException("请选择项目环节");
|
|
|
}
|
|
|
+ if (l.getApprove() != null && (l.getApprove() == 1 || l.getApprove() == 2)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
l.setProjectId(dto.getProjectId());
|
|
|
l.setUnitType(2);
|
|
|
countMoney(l);
|
|
@@ -106,6 +112,9 @@ public class ProjectCostBudgetServiceImpl extends BaseServiceImpl<ProjectCostBud
|
|
|
if (l.getProjectProcess() == null){
|
|
|
throw new ServiceException("请选择项目环节");
|
|
|
}
|
|
|
+ if (l.getApprove() != null && (l.getApprove() == 1 || l.getApprove() == 2)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
l.setProjectId(dto.getProjectId());
|
|
|
l.setUnitType(3);
|
|
|
countMoney(l);
|
|
@@ -763,6 +772,12 @@ public class ProjectCostBudgetServiceImpl extends BaseServiceImpl<ProjectCostBud
|
|
|
return unitType;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public ProjectCostBudget saveCountMoney(ProjectCostBudget budget) {
|
|
|
+ countMoney(budget);
|
|
|
+ return budget;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 统计一行的几个总金额
|
|
|
*/
|
|
@@ -770,7 +785,7 @@ public class ProjectCostBudgetServiceImpl extends BaseServiceImpl<ProjectCostBud
|
|
|
BigDecimal postMoney;
|
|
|
if (budget.getPostType() != null && budget.getPostType() > 0){
|
|
|
Double money = baseMapper.getPostMoney(budget.getPostType());
|
|
|
- postMoney = new BigDecimal(money);
|
|
|
+ postMoney = new BigDecimal(money+"");
|
|
|
}else {
|
|
|
postMoney = new BigDecimal("0");
|
|
|
}
|