buhuazhen
2026-04-20 a8ac4de671ef81470417c567937d84a88e3bad21
src/main/java/com/ruoyi/stock/service/impl/StockOutRecordServiceImpl.java
@@ -101,11 +101,12 @@
                    stockUninventoryDto.setQualitity(stockOutRecord.getStockOutNum());
                    stockUninventoryMapper.updateAddStockUnInventory(stockUninventoryDto);
                }
            }else if ("3".equals(stockOutRecord.getType())){
            }
            if ("13".equals(stockOutRecord.getRecordType())){
                // 此为 销售-发货出库 没有关联记录才能成功删除
                // 查询对应是否含有销售出货记录
                ShippingInfo byId = shippingInfoService.getById(stockOutRecord.getRecordId());
                Assert.notNull(byId, StrUtil.format("{}存在销售出货记录,无法删除!!!",stockOutRecord.getOutboundBatches()));
                Assert.isNull(byId, StrUtil.format("{}存在销售出货记录,无法删除!!!",stockOutRecord.getOutboundBatches()));
            }
        }