|
@@ -142,6 +142,13 @@ public class ProjectCostBudgetServiceImpl extends BaseServiceImpl<ProjectCostBud
|
|
|
vo.setProjectId(id);
|
|
|
//获取项目下所有已审批的计划
|
|
|
List<ProjectCostBudgetVO2> list = baseMapper.getApprovePlan(id);
|
|
|
+ list.stream().forEach(l->{
|
|
|
+ if (l.getPlanTaskType() != null || l.getPlanTaskDesc() != null || l.getPlanDays() != null){
|
|
|
+ l.setIsShowChildren(0);
|
|
|
+ }else {
|
|
|
+ l.setIsShowChildren(1);
|
|
|
+ }
|
|
|
+ });
|
|
|
//获取项目下所有的子计划
|
|
|
List<ProjectCostBudgetVO2> childrenList = baseMapper.getAllChildrenPlan(id);
|
|
|
if (childrenList != null && childrenList.size() >0) {
|