fix[project]: 修改syncTodoPhase方法
This commit is contained in:
@@ -593,7 +593,7 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
|
||||
}
|
||||
} else {
|
||||
// 阶段不存在,同步阶段机台工位
|
||||
syncTodoPhase(todo.getCreateTime(), Long.valueOf(projectNode.getProjectId()), todo.getProjectStage(), projectNode.getUuid(), req,todo.getStationNum());
|
||||
syncTodoPhase(todo.getCreateTime(), Long.valueOf(projectNode.getProjectId()), todo.getProjectStage(), projectNode.getUuid(), req,todo.getStationNum(), projectNode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3499,7 +3499,7 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
|
||||
return resultList;
|
||||
}
|
||||
|
||||
private void syncTodoPhase(String curDateStr, Long projectId, String currentPhase, String projectNodeId, SpdmAddDemandReq req,String stationNum) {
|
||||
private void syncTodoPhase(String curDateStr, Long projectId, String currentPhase, String projectNodeId, SpdmAddDemandReq req,String stationNum,SimulationNode projectNode) {
|
||||
Long tenantId = req.getTenantId();
|
||||
Long jobNumber = req.getCreator();
|
||||
List<SpdmProjectNodeEditReq> currentNodeList;
|
||||
@@ -3660,8 +3660,14 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
|
||||
}
|
||||
|
||||
// 批量创建文件夹
|
||||
batchCreateNodeDir(addNodeList);
|
||||
|
||||
SpdmProjectNodeEditReq spdmProjectNodeEditReq = new SpdmProjectNodeEditReq();
|
||||
BeanUtils.copyProperties(projectNode, spdmProjectNodeEditReq);
|
||||
NodeServiceImpl.NodeTypeFilterResult filterResult = new NodeServiceImpl.NodeTypeFilterResult(spdmProjectNodeEditReq
|
||||
, addNodeList.stream().filter(node -> NodeTypeEnum.PHASE.getValue().equals(node.getNodeType())).collect(Collectors.toList())
|
||||
, addNodeList.stream().filter(node -> NodeTypeEnum.MACHINE.getValue().equals(node.getNodeType())).collect(Collectors.toList())
|
||||
, addNodeList.stream().filter(node -> NodeTypeEnum.WORKSPACE.getValue().equals(node.getNodeType())).collect(Collectors.toList()));
|
||||
BatchCreateDirReq batchCreateDirReq = buildBatchCreateDirReq(filterResult);
|
||||
callBatchCreateDirApi(batchCreateDirReq);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user