You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.1 KiB
78 lines
2.1 KiB
using BBWYB.Server.Model.Db;
|
|
|
|
namespace BBWYB.Server.Model.Dto
|
|
{
|
|
public class PurchaserResponse : Purchaser
|
|
{
|
|
/// <summary>
|
|
/// 类目集合
|
|
/// </summary>
|
|
public IList<PurchaserExtendedInfoResponse> CategoryList { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标签集合
|
|
/// </summary>
|
|
public IList<PurchaserExtendedInfoResponse> TagList { get; set; }
|
|
|
|
/// <summary>
|
|
/// 绑定SPU数
|
|
/// </summary>
|
|
public int? BindingSpuCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购SPU数
|
|
/// </summary>
|
|
public int? PurchasedSpuCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 绑定SKU数
|
|
/// </summary>
|
|
public int? BindingSkuCount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购SKU数
|
|
/// </summary>
|
|
public int? PurchasedSkuCount { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 采购次数/采购订单数
|
|
/// </summary>
|
|
public int? PurchasedCount { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 采购金额
|
|
/// </summary>
|
|
public decimal? PurchaseAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 上次采购时间
|
|
/// </summary>
|
|
public DateTime? LastPurchaseTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 最近30天具有采购行为的店铺SKU
|
|
/// </summary>
|
|
public IList<ProductSkuResponse> Recent30dProductSku { get; set; }
|
|
|
|
public string Tag
|
|
{
|
|
get
|
|
{
|
|
if (Name.EndsWith("超级工厂"))
|
|
return "超级工厂";
|
|
if (Name.EndsWith("实力工厂"))
|
|
return "实力工厂";
|
|
if (Name.EndsWith("实力供应商"))
|
|
return "实力供应商";
|
|
return string.Empty;
|
|
}
|
|
}
|
|
|
|
public PurchaserResponse()
|
|
{
|
|
CategoryList = new List<PurchaserExtendedInfoResponse>();
|
|
TagList = new List<PurchaserExtendedInfoResponse>();
|
|
Recent30dProductSku = new List<ProductSkuResponse>();
|
|
}
|
|
}
|
|
}
|
|
|