| | |
| | | import com.ruoyi.production.pojo.ProductionOrderPick; |
| | | import com.ruoyi.production.pojo.ProductionOrderPickRecord; |
| | | import com.ruoyi.production.service.ProductionOrderPickService; |
| | | import com.ruoyi.stock.dto.StockInRecordDto; |
| | | import com.ruoyi.stock.dto.StockInventoryDto; |
| | | import com.ruoyi.stock.mapper.StockInventoryMapper; |
| | | import com.ruoyi.stock.pojo.StockInRecord; |
| | |
| | | if (stockInRecord == null || stockInRecord.getId() == null) { |
| | | throw new ServiceException("回补库存失败:未找到对应入库申请记录"); |
| | | } |
| | | StockInRecordDto.StockInRecordApproveItemDto approveItem = new StockInRecordDto.StockInRecordApproveItemDto(); |
| | | approveItem.setId(stockInRecord.getId()); |
| | | stockInRecordService.batchApprove( |
| | | Collections.singletonList(stockInRecord.getId()), |
| | | ReviewStatusEnum.APPROVED.getCode() |
| | | ReviewStatusEnum.APPROVED.getCode(), |
| | | Collections.singletonList(approveItem) |
| | | ); |
| | | } catch (ServiceException ex) { |
| | | throw ex; |