diff --git a/SBF.Business/TrusteeshipBusiness.cs b/SBF.Business/TrusteeshipBusiness.cs index 7b25dae..a75b111 100644 --- a/SBF.Business/TrusteeshipBusiness.cs +++ b/SBF.Business/TrusteeshipBusiness.cs @@ -123,6 +123,7 @@ namespace SBF.Business EndTime = t.EndTime, IsEnd = t.IsEnd, StartTrusteeshipDate = t.StartTrusteeshipDate, + PolicyType = t.PolicyType, Logo = ps.Logo, Price = ps.Price, @@ -249,7 +250,8 @@ namespace SBF.Business IsEnd = false, StartTrusteeshipDate = DateTime.Now.Date.AddDays(1), ShopId = request.ShopId, - SkuId = x.Sku + SkuId = x.Sku, + PolicyType = Model.Enums.PolicyType.成长期策略包 }).ToList(); var skuIdList = insertList.Select(x => x.SkuId).Distinct().ToList(); diff --git a/SBF.Model/Db/Trusteeship/Sbf_TrusteeshipTask.cs b/SBF.Model/Db/Trusteeship/Sbf_TrusteeshipTask.cs index 5562092..85456fd 100644 --- a/SBF.Model/Db/Trusteeship/Sbf_TrusteeshipTask.cs +++ b/SBF.Model/Db/Trusteeship/Sbf_TrusteeshipTask.cs @@ -108,6 +108,8 @@ namespace SBF.Model.Db [Column(DbType = "datetime")] public DateTime? StartTrusteeshipDate { get; set; } + [Column(MapType = typeof(int?))] + public Enums.PolicyType? PolicyType { get; set; } = Enums.PolicyType.成长期策略包; #region Product [Column(IsIgnore = true)] @@ -129,7 +131,7 @@ namespace SBF.Model.Db [Column(IsIgnore = true)] public int? ProductState { get; set; } - + [Column(IsIgnore = true)] public Enums.Stage? Stage { get; set; } = 0; #endregion diff --git a/SBF.Model/Enums.cs b/SBF.Model/Enums.cs index a8034ad..5c23f3a 100644 --- a/SBF.Model/Enums.cs +++ b/SBF.Model/Enums.cs @@ -396,5 +396,13 @@ { 新品款 = 0, 成长款 = 1, 日销款 = 2, TOP款 = 3, 清仓款 = 4 } + + /// + /// 策略类型 成长期策略包 = 0, 冲击主力策略包 = 1, 稳定期策略包 = 2, 主力期策略包 = 3 + /// + public enum PolicyType + { + 成长期策略包 = 0, 冲击主力策略包 = 1, 稳定期策略包 = 2, 主力期策略包 = 3 + } } }