main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java
@@ -293,6 +293,7 @@ officialInventory.setRegistrantId(1L); officialInventory.setType(pendingInventory.getType()); officialInventory.setSupplierId(pendingInventoryDto.getSupplierId()); officialInventory.setCode(pendingInventory.getCode()); officialInventoryMapper.insert(officialInventory); } else { OfficialInventory officialInventory = officialInventoryMapper.selectById(pendingInventoryDto.getOfficialId());