You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB
C#

6 months ago
using DS.WMS.Core.Application.Entity;
using DS.WMS.Core.Fee.Dtos;
using SqlSugar;
6 months ago
namespace DS.WMS.Core.Application.Dtos
{
/// <summary>
/// 按业务提交申请单
/// </summary>
public class ApplicationRequest<TEntity> where TEntity : ApplicationBase
{
/// <summary>
/// 申请单
/// </summary>
public TEntity Application { get; set; }
/// <summary>
/// 业务信息
/// </summary>
public List<FeeClient> Items { get; set; } = [];
/// <summary>
/// 查询条件字符串
/// </summary>
public string? QueryString { get; set; }
/// <summary>
/// 根据查询条件字符串提取查询条件对象
/// </summary>
/// <param name="client"></param>
/// <returns></returns>
public List<IConditionalModel> GetQueryConditions(ISqlSugarClient client)
{
List<IConditionalModel> whereList = [];
if (!string.IsNullOrEmpty(QueryString))
whereList = client.ConfigQuery.Context.Utilities.JsonToConditionalModels(QueryString);
return whereList;
}
6 months ago
}
}