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.

80 lines
2.2 KiB

using System.ComponentModel.DataAnnotations;
namespace BBWYB.Server.Model.Dto
{
public class QueryPurchaserRequest
{
[Required]
public long ShopId { get; set; }
public string Spu { get; set; }
public string Sku { get; set; }
/// <summary>
/// 采购商Id集合
/// </summary>
public List<string> PurchaserNameList { get; set; }
/// <summary>
/// 主营类目Id集合
/// </summary>
public List<long> CategoryIdList { get; set; }
/// <summary>
/// 供应商产地集合
/// </summary>
public List<string> LocationList { get; set; }
/// <summary>
/// 最近天数查询条件,可空
/// </summary>
public QueryPurchaserConditionByDayRequest RecentDayCondition { get; set; }
public Enums.ManagmentMode? ManagmentMode { get; set; }
/// <summary>
/// 页码 从1开始
/// </summary>
[Required]
public int PageIndex { get; set; }
/// <summary>
/// 页记录数 最大20
/// </summary>
[Required]
public int PageSize { get; set; }
}
public class QueryPurchaserConditionByDayRequest
{
/// <summary>
/// 最近天数
/// </summary>
public int? RecentDay { get; set; }
public Enums.ComparisonOperator? PurchasedCountComparisonOperator { get; set; }
/// <summary>
/// 采购量,大于/小于/等于/介于时传该值,可空
/// </summary>
public int? PurchasedCount { get; set; }
/// <summary>
/// 采购量,介于时传该值同时PurchasedCount也需要有值,可空
/// </summary>
public int? PurchasedCount2 { get; set; }
public Enums.ComparisonOperator? PurchasedAmountComparisonOperator { get; set; }
/// <summary>
/// 采购额,大于/小于/等于/介于时传该值,可空
/// </summary>
public int? PurchasedAmount { get; set; }
/// <summary>
/// 采购额,介于时传该值同时PurchasedAmount也需要有值,可空
/// </summary>
public int? PurchasedAmount2 { get; set; }
}
}