| | |
| | | import org.springblade.mdm.flow.vo.TaskAssignVO; |
| | | import org.springblade.mdm.program.entity.NcNode; |
| | | import org.springblade.mdm.program.service.NcNodeService; |
| | | import org.springblade.mdm.program.service.NodeDeptQueryService; |
| | | import org.springblade.mdm.program.vo.NcNodeVO; |
| | | import org.springblade.mdm.utils.EntityUtil; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | private final IdentityService identityService; |
| | | private final FlowProgramFileService flowProgramFileService; |
| | | private final ReplaceProgramFileService replaceProgramFileService; |
| | | private final MachineService machineService; |
| | | private final NodeDeptQueryService nodeDeptQueryService; |
| | | |
| | | public static final String NODE_ID = "nodeId"; |
| | | /** |
| | | * 转派,并记录自己的备注信息 |
| | | * @param nodeId 替换的节点id |
| | | */ |
| | | /* |
| | | @Transactional |
| | | public void prestart(long nodeId,String tempInstanceId) { |
| | | List<NcNode> fileNodes = nodeService.lambdaQuery() |
| | |
| | | flowProgramFileService.save(newFile); |
| | | } |
| | | } |
| | | |
| | | */ |
| | | |
| | | @Transactional |
| | | public NcNodeVO pre(long nodeId, String tempInstanceId) { |
| | |
| | | BeanUtils.copyProperties(node, vo); |
| | | vo.setProcessInstanceId(tempInstanceId); |
| | | |
| | | vo.setWorkshop(nodeDeptQueryService.getWorkshopNameByMachineCode(node.getMachineCode())); |
| | | |
| | | return vo; |
| | | } |
| | | |