From ad8ca68d26bf1ff7e6108b3e3aa960c377925673 Mon Sep 17 00:00:00 2001 From: sanji Date: Wed, 8 Nov 2023 16:39:06 +0800 Subject: [PATCH] =?UTF-8?q?spu=E5=A2=9E=E5=8A=A0logo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SiNan.Business/GOIBusiness.cs | 2 ++ SiNan.Model/Dto/Response/Product/ProductResponse.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/SiNan.Business/GOIBusiness.cs b/SiNan.Business/GOIBusiness.cs index bcd0157..2a59463 100644 --- a/SiNan.Business/GOIBusiness.cs +++ b/SiNan.Business/GOIBusiness.cs @@ -262,6 +262,8 @@ namespace SiNan.Business productGOIList.Add(productGoi); productGoi.ProductSkuGOIList = skuList.Where(ps => ps.ProductId == product.Id).Map>(); + + productGoi.Logo = productGoi.ProductSkuGOIList.FirstOrDefault()?.Logo; foreach (var productSku in productGoi.ProductSkuGOIList) { productSku.ProductGOI_Yestoday = yestodayProductLevelGOIList.FirstOrDefault(x => x.Sku == productSku.Id); diff --git a/SiNan.Model/Dto/Response/Product/ProductResponse.cs b/SiNan.Model/Dto/Response/Product/ProductResponse.cs index 3814a24..188b80d 100644 --- a/SiNan.Model/Dto/Response/Product/ProductResponse.cs +++ b/SiNan.Model/Dto/Response/Product/ProductResponse.cs @@ -2,5 +2,6 @@ { public class ProductResponse : Model.Db.Product { + public string Logo { get; set; } } }