项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs
@@ -202,7 +202,7 @@ stockInfo_Hty.ModifyDate = DateTime.Now; await DeleteStockInfoAsync(stock.Id); List<DtStockInfoDetail> detail = _stockInfoDetailRepository.QueryData(x => x.StockId == stock.Id).ToList(); if (detail != null && detail.Count() > 0) if (detail is not null && detail.Count() > 0) { List<DtStockInfoDetail_Hty> details = detail.Adapt<List<DtStockInfoDetail_Hty>>(); await DeleteStockInfoDetailsAsync(detail);