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.
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using DS.WMS.Core.Application.Entity;
|
|
using DS.WMS.Core.Fee.Dtos;
|
|
using SqlSugar;
|
|
|
|
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 List<ExchangeRate>? Exchanges { 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;
|
|
}
|
|
}
|
|
}
|