| | |
| | | import org.springblade.mdm.program.service.ProgramSeqService; |
| | | import org.springblade.mdm.utils.EntityUtil; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.flowable.engine.RuntimeService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | NcNode curedProgramPackage = null; |
| | | if(!startVO.isTemporaryFlow() && !startVO.isDeviationFlow()) { |
| | | //正常流程(非临时流程) 且不是 偏离单,才匹配固化程序 |
| | | curedProgramPackage = ncNodeService.getLastCuredProgramPackageWithoutProcessEdition(programPkgName,startVO.getMachineCode()); |
| | | curedProgramPackage = ncNodeService.getLastCuredProgramWithoutProcessEdition(startVO.getDrawingNo(),startVO.getProcessNo(),startVO.getMachineCode()); |
| | | //设置是否有固化程序标记 |
| | | vars.put(FlowContants.HAS_CURED_PROGRAM, curedProgramPackage != null ? FlowContants.Y : FlowContants.N); |
| | | //工序版次是否一致,是否在有效期内 |