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; } } }