| | |
| | | private IDocInfoService docInfoService; |
| | | |
| | | @Autowired |
| | | private IDocRelativeService docRelativeService; |
| | | |
| | | @Autowired |
| | | private IPartsInfoService partsInfoService; |
| | | |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | // 拼接完整编号 |
| | | return yearSuffix + code + user.getUsername() + serialSuffix; |
| | | return yearSuffix+"-"+ code+"-"+ user.getUsername()+"-"+ serialSuffix; |
| | | } |
| | | |
| | | /** |
| | |
| | | guideCardBatch.setProcessWorkCode(workStep.getStepCode()); |
| | | partsInfo=partsInfoService.getById(workStep.getPartsId()); |
| | | } |
| | | if (partsInfo==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()); |
| | | if (partsInfo!=null){ |
| | | guideCardBatch.setPartsCode(partsInfo.getPartsCode()); |
| | | guideCardBatch.setPartsName(partsInfo.getPartsName()); |
| | | guideCardBatch.setMaterielDesp(partsInfo.getStructureType()); |
| | | } |
| | | guideCardBatch.setFlowStatus("0"); |
| | | guideCardBatch.setCompiler(user.getUsername()); |
| | | guideCardBatch.setCreateTime(new Date()); |
| | | return this.save(guideCardBatch); |