1、如果节点中的阶段和待办中的阶段不一致,就先不同步待办
This commit is contained in:
@@ -3093,6 +3093,21 @@ public class NodeServiceImpl extends ServiceImpl<SimulationNodeMapper, Simulatio
|
||||
}
|
||||
log.info("项目{}过滤后待同步的待办数量:{}", projectNum, todoInfoList.size());
|
||||
|
||||
// 2026-02-06 如果节点中的阶段和待办中的阶段不一致,就先不同步待办
|
||||
SpdmProjectNodeEditReq phaseNode = allNodeList.stream().filter(node -> NodeTypeEnum.PHASE.getValue().equals(node.getNodeType())).findFirst().orElse(null);
|
||||
if (ObjectUtils.isNotEmpty(phaseNode)) {
|
||||
String phaseNodeName = phaseNode.getNodeName();
|
||||
log.info("节点中的阶段为:{}",phaseNodeName);
|
||||
if (StringUtils.isNotBlank(phaseNodeName)) {
|
||||
todoInfoList = todoInfoList.stream().filter(todoInfo -> phaseNodeName.equals(todoInfo.getProjectStage())).toList();
|
||||
log.info("过滤阶段后待同步的待办数量:{}", todoInfoList.size());
|
||||
if (CollectionUtils.isEmpty(todoInfoList)) {
|
||||
log.info("过滤阶段后没有需要同步的待办");
|
||||
return SdmResponse.success();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 4. 准备基础数据
|
||||
Long tenantId = ThreadLocalContext.getTenantId();
|
||||
Long currentUserId = ThreadLocalContext.getUserId();
|
||||
|
||||
Reference in New Issue
Block a user