| | |
| | | private IDocInfoService docInfoService; |
| | | |
| | | @Autowired |
| | | private IComponentInfoService componentInfoService; |
| | | |
| | | @Autowired |
| | | private IPartsInfoService partsInfoService; |
| | | |
| | | @Autowired |
| | |
| | | if (docInfo==null){ |
| | | return false; |
| | | } |
| | | PartsInfo partsInfo=new PartsInfo(); |
| | | /** 客户方要求加工程序确认表中的零件图号、名称、材质取部件的信息 2025-08-19 **/ |
| | | // PartsInfo partsInfo=new PartsInfo(); |
| | | ComponentInfo componentInfo=new ComponentInfo(); |
| | | ProcessStream processStream; |
| | | WorkStep workStep; |
| | | DeviceType deviceType; |
| | |
| | | return false; |
| | | } |
| | | guideCardBatch.setProcessWorkCode(processStream.getProcessCode()); |
| | | partsInfo=partsInfoService.getById(processStream.getPartsId()); |
| | | // partsInfo=partsInfoService.getById(processStream.getPartsId()); |
| | | componentInfo=componentInfoService.getById(processStream.getComponentId()); |
| | | }else if (DocAttributionTypeEnum.WORKSITE.getCode().equals(attributionType)){ |
| | | //工步设备类 |
| | | deviceType=deviceTypeService.getById(attributionId); |
| | |
| | | return false; |
| | | } |
| | | guideCardBatch.setProcessWorkCode(workStep.getStepCode()); |
| | | partsInfo=partsInfoService.getById(workStep.getPartsId()); |
| | | // partsInfo=partsInfoService.getById(workStep.getPartsId()); |
| | | componentInfo=componentInfoService.getById(workStep.getComponentId()); |
| | | |
| | | } |
| | | if (partsInfo==null){ |
| | | // if (partsInfo==null){ |
| | | // return false; |
| | | // } |
| | | if (componentInfo==null){ |
| | | return false; |
| | | } |
| | | guideCardBatch.setDocId(docId); |
| | | guideCardBatch.setSerialNumber(getSerialNumber("C140")); |
| | | guideCardBatch.setUnit(sysDictService.queryDictTextByKey("unit_code", "C140")); |
| | | guideCardBatch.setDocName(docInfo.getDocName()); |
| | | guideCardBatch.setPartsCode(partsInfo.getPartsCode()); |
| | | guideCardBatch.setPartsName(partsInfo.getPartsName()); |
| | | guideCardBatch.setMaterielDesp(partsInfo.getMaterielDesp()); |
| | | // guideCardBatch.setPartsCode(partsInfo.getPartsCode()); |
| | | // guideCardBatch.setPartsName(partsInfo.getPartsName()); |
| | | // guideCardBatch.setMaterielDesp(partsInfo.getMaterielDesp()); |
| | | guideCardBatch.setPartsCode(componentInfo.getComponentCode()); |
| | | guideCardBatch.setPartsName(componentInfo.getComponentName()); |
| | | guideCardBatch.setMaterielDesp(componentInfo.getStructureType()); |
| | | |
| | | guideCardBatch.setCompiler(user.getUsername()); |
| | | guideCardBatch.setCreateTime(new Date()); |
| | | return this.save(guideCardBatch); |