Browse Source

托管任务新增策略类型

master
shanji 2 years ago
parent
commit
3915d7950c
  1. 4
      SBF.Business/TrusteeshipBusiness.cs
  2. 4
      SBF.Model/Db/Trusteeship/Sbf_TrusteeshipTask.cs
  3. 8
      SBF.Model/Enums.cs

4
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();

4
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

8
SBF.Model/Enums.cs

@ -396,5 +396,13 @@
{
= 0, = 1, = 2, TOP款 = 3, = 4
}
/// <summary>
/// 策略类型 成长期策略包 = 0, 冲击主力策略包 = 1, 稳定期策略包 = 2, 主力期策略包 = 3
/// </summary>
public enum PolicyType
{
= 0, = 1, = 2, = 3
}
}
}

Loading…
Cancel
Save