1、利元亨现场重新同步数据时,修改同步逻辑

This commit is contained in:
2026-03-15 18:38:14 +08:00
parent d74695140b
commit e09d29746f

View File

@@ -778,7 +778,7 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
if (CollectionUtils.isNotEmpty(createDirItemList)) {
// project的uuidcreateDirItemList中每一项project的uuid都一样取第一个即可
for (BatchCreateDirItem batchCreateDirItem : createDirItemList) {
String projectNodeId = createDirItemList.get(0).getParentDirNodeInfo().getUuId();
String projectNodeId = batchCreateDirItem.getParentDirNodeInfo().getUuId();
if (StringUtils.isBlank(projectNodeId)) {
log.error("projectNodeId为空createDirItemList{}", createDirItemList);
return;
@@ -2379,6 +2379,14 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
return Collections.emptyList();
}
// 过滤3D负责人为空的待办数据
todoInfoList = todoInfoList.stream().filter(todo -> StringUtils.isNotBlank(todo.getThreeDimensionalPerformer()))
.collect(Collectors.toList());
if (CollectionUtils.isEmpty(todoInfoList)) {
log.info("未查询到{}到{}的待同步的有效待办数据", startTime, endTime);
return Collections.emptyList();
}
List<LyricVTodoEmulationInfoDM> expTodoInfoList = todoInfoList.stream().filter(todoInfo -> DemandTypeEnum.FINITE_ELEMENT_SIMULATION.getName().equals(todoInfo.getRelevanceTask()))
.toList();
if (CollectionUtils.isNotEmpty(expTodoInfoList)) {