| | |
| | | import org.springblade.mdm.flow.constants.FlowContants; |
| | | import org.springblade.mdm.program.entity.NcNode; |
| | | import org.springblade.mdm.program.service.NodeDeptQueryService; |
| | | import org.springblade.system.feign.IUserClient; |
| | | import org.springblade.system.pojo.entity.User; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | private final ProduceDivisionService produceDivisionService; |
| | | private final NodeDeptQueryService nodeDeptQueryService; |
| | | private final MachineService machineService; |
| | | private final IUserClient userClient; |
| | | /** |
| | | * 根据流程实例id获取definitionKey |
| | | * @param processInstanceId |
| | |
| | | Map<String, Object> vars = runtimeService.getVariables(processInstanceId); |
| | | |
| | | programProperties.setTitle(String.valueOf(vars.get(FlowContants.TITLE))); |
| | | programProperties.setIsTempFlow(Func.toStr(vars.get(FlowContants.IS_TEMP_FLOW))); |
| | | programProperties.setDrawingNo(String.valueOf(vars.get(FlowContants.DRAWING_NO))); |
| | | programProperties.setDrawingNoEdition(String.valueOf(vars.get(FlowContants.DRAWING_NO_EDITION))); |
| | | programProperties.setProductModel(String.valueOf(vars.get(FlowContants.PRODUCT_MODEL))); |
| | |
| | | vars.put(FlowContants.ASSIGNEE, defaultAssignee);//第一个审批用户:组长 |
| | | } |
| | | |
| | | R<User> programmerResult = userClient.userInfoById(div.getProgrammerId()); |
| | | if(programmerResult.isSuccess()) { |
| | | vars.put(FlowContants.PROGRAMMER_NAME, programmerResult.getData().getName()); |
| | | } |
| | | return div; |
| | | } |
| | | |