|
@ -376,13 +376,25 @@ public class HuzhouPlaninfoServiceImpl extends ServiceImpl<HuzhouPlaninfoMapper, |
|
|
resultList.stream().forEach(item -> { |
|
|
resultList.stream().forEach(item -> { |
|
|
item.getChildren().forEach(childItem -> { |
|
|
item.getChildren().forEach(childItem -> { |
|
|
// 判断子阶段是否需要填写实际合同金额,如果存在则支持重新上传
|
|
|
// 判断子阶段是否需要填写实际合同金额,如果存在则支持重新上传
|
|
|
Boolean flag = contractinfoService.hasContractinfoByTaskName(projectId, childItem.getTaskName()); |
|
|
if (childItem.getTaskName().equals("合同签订")) { |
|
|
if(flag){ |
|
|
LambdaQueryWrapper<HuzhouPlaninfo> qw = new LambdaQueryWrapper<>(); |
|
|
childItem.setIsmodify(true); |
|
|
qw.eq(HuzhouPlaninfo::getProjectId, projectId) |
|
|
}else { |
|
|
.eq(HuzhouPlaninfo::getTaskName, "合同签订").eq(HuzhouPlaninfo::getIsfinish, "2"); |
|
|
childItem.setIsmodify(false); |
|
|
if (planInfoMapper.selectCount(qw) > 0 && contractinfoService.getContractinfoByprojectId(projectId).size() < 1) { |
|
|
|
|
|
childItem.setIsmodify(true); |
|
|
|
|
|
log.info("----开启补偿接口重新上传合同金额-----"); |
|
|
|
|
|
} else { |
|
|
|
|
|
childItem.setIsmodify(false); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
Boolean flag = contractinfoService.hasContractinfoByTaskName(projectId, childItem.getTaskName()); |
|
|
|
|
|
if (flag) { |
|
|
|
|
|
childItem.setIsmodify(true); |
|
|
|
|
|
} else { |
|
|
|
|
|
childItem.setIsmodify(false); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
|