using System.Collections.Generic;
using System.Linq;
namespace Store.Product.Models.Product.Sku
{
///
/// Sku Map Item
///
public class SkuMapItem
{
///
/// 库存数量
///
public int StockCount { get; set; }
///
/// 价格
///
public decimal Price { get; set; }
///
/// 划线价格
///
public decimal MarketPrice { get; set; }
///
/// SkuId
///
public long SkuId { get; set; }
///
/// Sku 属性值
///
public List Properties { get; set; } = new List();
///
/// Sku 属性标题集合
///
public string SkuPropertyTitles
{
get
{
string title = string.Join("},{", Properties.Select(a => a.ToString()));
title = "{" + title + "}";
return title;
}
}
///
/// Sku属性Keyu
///
public string SalePropKey
{
get
{
return string.Join("_", Properties.Select(a => a.SalePropKey));
}
}
}
}