diff --git a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs index 3150582..c531050 100644 --- a/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs +++ b/BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs @@ -931,7 +931,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services { value = ""; } - if (value.ToString().Trim() == goodsName.Trim()) + if (value.ToString().Trim() == goodsName?.Trim()) { //ColumnAttribute attribute = (ColumnAttribute)item2.GetCustomAttribute(typeof(ColumnAttribute), false); //return attribute?.Name;