【新增】商品详情新增sku价格区间展示,如【¥100~395】,选中单个sku后自动变更其具体价格

This commit is contained in:
大灰灰
2022-05-11 21:06:00 +08:00
parent fb60a05e02
commit 93efdd425b
4 changed files with 43 additions and 6 deletions

View File

@@ -11,6 +11,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CoreCms.Net.Model.FromBody;
using SqlSugar;
namespace CoreCms.Net.Model.Entities
@@ -108,6 +109,11 @@ namespace CoreCms.Net.Model.Entities
[SugarColumn(IsIgnore = true)]
public List<CoreCmsProducts> sku { get; set; } = new();
/// <summary>
/// 商品规格
/// </summary>
[SugarColumn(IsIgnore = true)]
public Dictionary<string, Dictionary<string, DefaultSpesDesc>> specification { get; set; } = new();
/// <summary>
/// 是否收藏
@@ -176,5 +182,19 @@ namespace CoreCms.Net.Model.Entities
[SugarColumn(IsIgnore = true)] public DateTime groupEndTime { get; set; }
[SugarColumn(IsIgnore = true)] public int groupTimestamp { get; set; }
/// <summary>
/// sku最小价格
/// </summary>
[SugarColumn(IsIgnore = true)]
public decimal minPrice { get; set; } = 0;
/// <summary>
/// sku最大价格
/// </summary>
[SugarColumn(IsIgnore = true)]
public decimal maxPrice { get; set; } = 0;
}
}