增加项目,分层
This commit is contained in:
1 parent
6e995a5bdb
commit
0a3e5af6a9
234 files changed
+26994
-1
No files matched your search
@@ -0,0 +1,56 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Store.Product.Models.Product.Sku
|
||||
{
|
||||
/// <summary>
|
||||
/// Sku Map Item
|
||||
/// </summary>
|
||||
public class SkuMapItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 库存数量
|
||||
/// </summary>
|
||||
public int StockCount { get; set; }
|
||||
/// <summary>
|
||||
/// 价格
|
||||
/// </summary>
|
||||
public decimal Price { get; set; }
|
||||
/// <summary>
|
||||
/// 划线价格
|
||||
/// </summary>
|
||||
public decimal MarketPrice { get; set; }
|
||||
/// <summary>
|
||||
/// SkuId
|
||||
/// </summary>
|
||||
public long SkuId { get; set; }
|
||||
/// <summary>
|
||||
/// Sku 属性值
|
||||
/// </summary>
|
||||
public List<SkuMapProperty> Properties { get; set; } = new List<SkuMapProperty>();
|
||||
|
||||
/// <summary>
|
||||
/// Sku 属性标题集合
|
||||
/// </summary>
|
||||
public string SkuPropertyTitles
|
||||
{
|
||||
get
|
||||
{
|
||||
string title = string.Join("},{", Properties.Select(a => a.ToString()));
|
||||
title = "{" + title + "}";
|
||||
return title;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Sku属性Keyu
|
||||
/// </summary>
|
||||
public string SalePropKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Join("_", Properties.Select(a => a.SalePropKey));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user