username@email.com
2024-05-29 7a3a4f8012a72f80d8dd62064a76655c803da864
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
/***********************************************************************
 *            Project: baifenBinfa
 *        ProjectName: 百分兵法管理系统                               
 *                Web: http://chuanyin.com                     
 *             Author:                                        
 *              Email:                               
 *         CreateTime: 202403/02   
 *        Description: 暂无
 ***********************************************************************/
 
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CoreCms.Net.Model.FromBody;
using CoreCms.Net.Model.ViewModels.DTO;
using SqlSugar;
 
namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    ///     商品类型扩展
    /// </summary>
    public partial class CoreCmsGoods
    {
        /// <summary>
        ///     货品编码
        /// </summary>
        [Display(Name = "货品编码")]
        [SugarColumn(IsIgnore = true)]
        public string sn { get; set; }
 
        /// <summary>
        ///     销售价
        /// </summary>
        [Display(Name = "销售价")]
        [SugarColumn(IsIgnore = true)]
        public decimal price { get; set; } = 0;
 
        /// <summary>
        ///     成本价
        /// </summary>
        [Display(Name = "成本价")]
        [SugarColumn(IsIgnore = true)]
        public decimal costprice { get; set; } = 0;
 
        /// <summary>
        ///     市场价
        /// </summary>
        [Display(Name = "市场价")]
        [SugarColumn(IsIgnore = true)]
        public decimal mktprice { get; set; } = 0;
 
 
        /// <summary>
        ///     库存
        /// </summary>
        [Display(Name = "库存")]
        [SugarColumn(IsIgnore = true)]
        public int stock { get; set; } = 0;
 
        /// <summary>
        ///     冻结库存
        /// </summary>
        [Display(Name = "冻结库存")]
        [SugarColumn(IsIgnore = true)]
        public int freezeStock { get; set; } = 0;
 
        /// <summary>
        ///     重量
        /// </summary>
        [Display(Name = "重量")]
        [SugarColumn(IsIgnore = true)]
        public decimal weight { get; set; } = 0;
 
        /// <summary>
        ///     积分抵扣金额
        /// </summary>
        [Display(Name = "积分抵扣金额")]
        [SugarColumn(IsIgnore = true)]
        public decimal pointsDeduction { get; set; } = 0;
 
        /// <summary>
        ///     赠送积分
        /// </summary>
        [Display(Name = "赠送积分")]
        [SugarColumn(IsIgnore = true)]
        public int points { get; set; } = 0;
 
        /// <summary>
        ///     图集
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string[] album { get; set; }
 
        /// <summary>
        ///     品牌数据
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public CoreCmsBrand brand { get; set; }
 
        /// <summary>
        ///     关联参数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public CoreCmsProducts product { get; set; } = new();
 
        /// <summary>
        ///     关联SKU
        /// </summary>
        [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>
        ///     关联SKU
        [SugarColumn(IsIgnore = true)]
        public CoreCmsProductsView skuList { get; set; } = new();
 
        /// <summary>
        ///     是否收藏
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool isFav { get; set; } = false;
 
 
        /// <summary>
        ///     关联拼团规则
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public CoreCmsPinTuanRule pinTuanRule { get; set; } = null;
 
        /// <summary>
        ///     拼团价格
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public decimal pinTuanPrice { get; set; } = 0;
 
        /// <summary>
        ///     拼团记录
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<CoreCmsPinTuanRecord> pinTuanRecord { get; set; } = new();
 
 
        /// <summary>
        ///     拼团记录数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int pinTuanRecordNums { get; set; } = 0;
 
        /// <summary>
        ///     拼团总单数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int buyPinTuanCount { get; set; } = 0;
 
        /// <summary>
        ///     团购秒杀促销总单数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int buyPromotionCount { get; set; } = 0;
 
        /// <summary>
        ///     标签列表
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<CoreCmsLabel> labels { get; set; } = new();
 
        /// <summary>
        ///     所属团购秒杀
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int groupId { get; set; }
 
        /// <summary>
        /// 团购秒杀类型
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int groupType { get; set; }
 
        /// <summary>
        /// 团购秒杀状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool groupStatus { get; set; }
 
        /// <summary>
        /// 团购秒杀时效
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime groupTime { get; set; }
 
        /// <summary>
        /// 团购秒杀开始时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime groupStartTime { get; set; }
 
        /// <summary>
        /// 团购秒杀结束时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime groupEndTime { get; set; }
 
        /// <summary>
        /// 团购秒杀时间戳
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int groupTimestamp { get; set; }
 
        /// <summary>
        /// 团购秒杀促销结果
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string groupPromotionResult { 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;
        /// <summary>
        ///     sku最大价格
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string area { get; set; }
 
        /// <summary>
        /// 是否有支持定制的
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public bool isCustomizable {  get; set; }= false;
 
    }
}