1、同步待办的阶段不存在时,直接拉取阶段-机台-工位,并把待办挂在相应节点下
This commit is contained in:
@@ -585,7 +585,7 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
|
||||
}
|
||||
} else {
|
||||
// 阶段不存在,同步阶段机台工位
|
||||
syncTodoPhase(todo.getCreateTime(), Long.valueOf(projectNode.getProjectId()), todo.getProjectStage(), projectNode.getUuid(), req);
|
||||
syncTodoPhase(todo.getCreateTime(), Long.valueOf(projectNode.getProjectId()), todo.getProjectStage(), projectNode.getUuid(), req,todo.getStationNum());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3477,7 +3477,7 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
|
||||
return resultList;
|
||||
}
|
||||
|
||||
private void syncTodoPhase(String curDateStr, Long projectId, String currentPhase, String projectNodeId, SpdmAddDemandReq req) {
|
||||
private void syncTodoPhase(String curDateStr, Long projectId, String currentPhase, String projectNodeId, SpdmAddDemandReq req,String stationNum) {
|
||||
Long tenantId = req.getTenantId();
|
||||
Long jobNumber = req.getCreator();
|
||||
List<SpdmProjectNodeEditReq> currentNodeList;
|
||||
@@ -3551,6 +3551,10 @@ public class LyricInternalServiceImpl implements ILyricInternalService {
|
||||
workspaceNode.setTenantId(tenantId);
|
||||
workspaceNode.setProjectSource(SYNC_PROJECT_SOURCE);
|
||||
workspaceNode.setPid(machineNode.getUuid());
|
||||
if (workspaceNode.getNodeCode().equals(stationNum)) {
|
||||
req.setWorkspaceId(workspaceNode.getUuid());
|
||||
req.setMachineId(workspaceNode.getPid());
|
||||
}
|
||||
addNodeList.add(workspaceNode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user