项目库任务计划时间轴修改
This commit is contained in:
+8
@@ -198,6 +198,14 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
}
|
}
|
||||||
// 排序
|
// 排序
|
||||||
Collections.sort(timeNodeVOS, listConfirmationVO);
|
Collections.sort(timeNodeVOS, listConfirmationVO);
|
||||||
|
//设置在已过时,和未发生之间的数据的状态为进行中
|
||||||
|
for(int i=0;i<timeNodeVOS.size();i++){
|
||||||
|
if(timeNodeVOS.get(i).getStatus().equals(PlanStatusEnum.OUT_OF_DATE.getValue())
|
||||||
|
&& timeNodeVOS.get(i+1).getStatus().equals(PlanStatusEnum.LESS_THAN_TIME.getValue())){
|
||||||
|
timeNodeVOS.get(i+1).setStatus(PlanStatusEnum.ON_GOING.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
return timeNodeVOS;
|
return timeNodeVOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user