增加项目,分层
This commit is contained in:
1 parent
6e995a5bdb
commit
0a3e5af6a9
234 files changed
+26994
-1
No files matched your search
@@ -0,0 +1,40 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Linq;
|
||||
|
||||
namespace Store.Product.Models.Product.Sku
|
||||
{
|
||||
/// <summary>
|
||||
/// Sku Map映射
|
||||
/// </summary>
|
||||
public class SkuMaps : List<SkuMapItem>
|
||||
{
|
||||
/// <summary>
|
||||
/// 最低价位
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public SkuMapItem SkuLowItem
|
||||
{
|
||||
get
|
||||
{
|
||||
var price = this.Min(a => a.Price);
|
||||
return this.FirstOrDefault(a => a.Price == price);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 最高价位
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public SkuMapItem SkuHighItem
|
||||
{
|
||||
get
|
||||
{
|
||||
var price = this.Max(a => a.Price);
|
||||
return this.FirstOrDefault(a => a.Price == price);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user