chenhj
2 天以前 d9b764868dbfa79aa79d79f676f60a28c4055b06
main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java
@@ -192,7 +192,7 @@
                officialInventory.setPendingId(pendingInventoryDto.getPId());
                officialInventory.setInventoryQuantity(quantity);
                officialInventoryMapper.insert(officialInventory);
            }else {
            } else {
                OfficialInventory officialInventory = officialInventoryMapper.selectById(pendingInventoryDto.getOfficialId());
                officialInventory.setInventoryQuantity(quantity.add(officialInventory.getInventoryQuantity()));
                officialInventoryMapper.updateById(officialInventory);
@@ -200,10 +200,4 @@
        }
        return i;
    }
    // 处理明细和库存数量
    private int handeInventoryQuantity(PendingInventoryDto pendingInventoryDto) {
        inputInventoryRecordService.insertInputInventoryRecord(pendingInventoryDto, null, pendingInventoryDto.getInventoryQuantity());
        return inventorySummaryService.updateInventory(pendingInventoryDto, null);
    };
}