diff --git a/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs b/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs index 9e81502b..00582f53 100644 --- a/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs +++ b/CoreCms.Net.Services/Good/CoreCmsProductsServices.cs @@ -72,7 +72,7 @@ namespace CoreCms.Net.Services var productModel = await _dal.QueryByClauseAsync(p => p.id == id); if (productModel == null) return null; //获取商品信息 - var goods = await goodsServices.QueryByIdAsync(productModel.goodsId); + var goods = await goodsServices.QueryByClauseAsync(p => p.id == productModel.goodsId && p.isDel == false && p.isMarketable == true); if (goods == null) return null; //DTO映射 productModel.bn = goods.bn;