| | |
| | | private ProductMaterialService productMaterialService; |
| | | |
| | | @Autowired |
| | | private ProductBomService productBomService; |
| | | |
| | | @Autowired |
| | | private TempFileMapper tempFileMapper; |
| | | |
| | | @Override |
| | |
| | | throw new ServiceException("查询失败,未查询到生产订单信息"); |
| | | } |
| | | dto.setNpsNo(productOrder.getNpsNo()); |
| | | dto.setStrength(productOrder.getStrength()); |
| | | |
| | | /// 产品信息 |
| | | ProductMaterialSkuDto productMaterialSkuDto = productMaterialService.selectProductByProductMainId(productOrder.getId()); |
| | |
| | | ProductionProductRouteItemDto routeItemDto = new ProductionProductRouteItemDto(); |
| | | BeanUtils.copyProperties(routeItem, routeItemDto); |
| | | |
| | | // 工序名称/编号 |
| | | ProductProcess productProcess = productProcessService.getById(routeItem.getProcessId()); |
| | | routeItemDto.setProcessName(productProcess.getName()); |
| | | routeItemDto.setProcessNo(productProcess.getNo()); |
| | | |
| | | // 查询工序参数 |
| | | List<ProductionProductRouteItemParam> paramList = productionProductRouteItemParamService.list( |
| | | new LambdaQueryWrapper<ProductionProductRouteItemParam>() |
| | |
| | | ProductMaterialSkuDto materialSkuDto = productMaterialService.selectProductByModelId(paramDto.getProductId()); |
| | | productMaterialService.selectProductByModelId(paramDto.getProductId()); |
| | | paramDto.setParamName(materialSkuDto.getProductName()); |
| | | paramDto.setModel(materialSkuDto.getModel()); |
| | | paramDto.setMaterialCode(materialSkuDto.getMaterialCode()); |
| | | String strength = productBomService.strengthById(paramDto.getBomId()); |
| | | paramDto.setStrength(strength); |
| | | } |
| | | return paramDto; |
| | | }).collect(Collectors.toList()); |
| | |
| | | .eq(ProductionProductRouteItemParam::getProductionProductRouteItemId, routeItemId)); |
| | | |
| | | List<ProductionProductRouteItemParamDto> paramDtoList = routeItemDto.getProductionProductRouteItemParamDtoList(); |
| | | if (paramDtoList != null && !paramDtoList.isEmpty()) { |
| | | if (paramDtoList != null && !paramDtoList.isEmpty()) { |
| | | for (ProductionProductRouteItemParamDto paramDto : paramDtoList) { |
| | | ProductionProductRouteItemParam paramEntity = new ProductionProductRouteItemParam(); |
| | | BeanUtils.copyProperties(paramDto, paramEntity, "id"); |