项目库-项目详情-bug57090
This commit is contained in:
+15
-1
@@ -116,6 +116,8 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
Date trueNow = cal1.getTime();
|
Date trueNow = cal1.getTime();
|
||||||
for (ProjectTaskPlanning projectTaskPlanning : list) {
|
for (ProjectTaskPlanning projectTaskPlanning : list) {
|
||||||
List<TimeNodeVO> timeNodeVOS = new ArrayList<>();
|
List<TimeNodeVO> timeNodeVOS = new ArrayList<>();
|
||||||
|
|
||||||
|
// 清单确认
|
||||||
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getListConfirmation())) {
|
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getListConfirmation())) {
|
||||||
listConfirmationVO = new TimeNodeVO();
|
listConfirmationVO = new TimeNodeVO();
|
||||||
|
|
||||||
@@ -137,6 +139,7 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
timeNodeVOS.add(listConfirmationVO);
|
timeNodeVOS.add(listConfirmationVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 任务确认
|
||||||
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getLegalTaskConfirmation())) {
|
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getLegalTaskConfirmation())) {
|
||||||
TimeNodeVO legalTaskConfirmationVO = new TimeNodeVO();
|
TimeNodeVO legalTaskConfirmationVO = new TimeNodeVO();
|
||||||
|
|
||||||
@@ -158,6 +161,7 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
timeNodeVOS.add(legalTaskConfirmationVO);
|
timeNodeVOS.add(legalTaskConfirmationVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 设计符合性
|
||||||
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getDesignDeadline())) {
|
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getDesignDeadline())) {
|
||||||
TimeNodeVO designDeadlineVO = new TimeNodeVO();
|
TimeNodeVO designDeadlineVO = new TimeNodeVO();
|
||||||
|
|
||||||
@@ -179,6 +183,7 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
timeNodeVOS.add(designDeadlineVO);
|
timeNodeVOS.add(designDeadlineVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 摸底试验结束
|
||||||
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getPrehomoDeadline())) {
|
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getPrehomoDeadline())) {
|
||||||
TimeNodeVO prehomoDeadlineVO = new TimeNodeVO();
|
TimeNodeVO prehomoDeadlineVO = new TimeNodeVO();
|
||||||
|
|
||||||
@@ -200,6 +205,7 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
timeNodeVOS.add(prehomoDeadlineVO);
|
timeNodeVOS.add(prehomoDeadlineVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 认证试验结束
|
||||||
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getAttestationStartTime())) {
|
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getAttestationStartTime())) {
|
||||||
TimeNodeVO attestationStartTimeVO = new TimeNodeVO();
|
TimeNodeVO attestationStartTimeVO = new TimeNodeVO();
|
||||||
|
|
||||||
@@ -220,6 +226,8 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
attestationStartTimeVO.setProjectId(projectTaskPlanning.getProjectId());
|
attestationStartTimeVO.setProjectId(projectTaskPlanning.getProjectId());
|
||||||
timeNodeVOS.add(attestationStartTimeVO);
|
timeNodeVOS.add(attestationStartTimeVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 认证批准
|
||||||
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getAttestationEndTime())) {
|
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getAttestationEndTime())) {
|
||||||
TimeNodeVO attestationEndTimeVO = new TimeNodeVO();
|
TimeNodeVO attestationEndTimeVO = new TimeNodeVO();
|
||||||
|
|
||||||
@@ -241,6 +249,7 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
timeNodeVOS.add(attestationEndTimeVO);
|
timeNodeVOS.add(attestationEndTimeVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 验证符合性
|
||||||
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getVerifyDeadline())) {
|
if(ObjectUtils.isNotEmpty(projectTaskPlanning.getVerifyDeadline())) {
|
||||||
TimeNodeVO verifyDeadlineVO = new TimeNodeVO();
|
TimeNodeVO verifyDeadlineVO = new TimeNodeVO();
|
||||||
|
|
||||||
@@ -261,8 +270,13 @@ public class ProjectTaskPlanningServiceImpl extends ServiceImpl<ProjectTaskPlann
|
|||||||
verifyDeadlineVO.setProjectId(projectTaskPlanning.getProjectId());
|
verifyDeadlineVO.setProjectId(projectTaskPlanning.getProjectId());
|
||||||
timeNodeVOS.add(verifyDeadlineVO);
|
timeNodeVOS.add(verifyDeadlineVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 排序
|
// 排序
|
||||||
Collections.sort(timeNodeVOS, listConfirmationVO);
|
// Collections.sort(timeNodeVOS, listConfirmationVO);
|
||||||
|
timeNodeVOS = timeNodeVOS.stream()
|
||||||
|
.sorted(Comparator.comparing(TimeNodeVO::getTime))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
//设置在已过时,和未发生之间的数据的状态为进行中
|
//设置在已过时,和未发生之间的数据的状态为进行中
|
||||||
for(int i=0;i<timeNodeVOS.size();i++){
|
for(int i=0;i<timeNodeVOS.size();i++){
|
||||||
if(i == timeNodeVOS.size()-1){
|
if(i == timeNodeVOS.size()-1){
|
||||||
|
|||||||
Reference in New Issue
Block a user