|
|
|
@ -122,9 +122,9 @@ namespace Myshipping.Core.Service
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("/DJYTenantParam/list")]
|
|
|
|
|
public async Task<List<DjyTenantParam>> List(string Type, string ParaCode)
|
|
|
|
|
public async Task<List<DjyTenantParam>> List(string Type, string ParaName)
|
|
|
|
|
{
|
|
|
|
|
return await _rep.AsQueryable().WhereIF(!string.IsNullOrEmpty(Type), x => x.Type == Type).WhereIF(!string.IsNullOrEmpty(ParaCode), x => x.ParaCode == ParaCode).OrderBy(x => x.Sort).ToListAsync();
|
|
|
|
|
return await _rep.AsQueryable().WhereIF(!string.IsNullOrEmpty(Type), x => x.Type == Type).WhereIF(!string.IsNullOrEmpty(ParaName), x => x.ParaName.Contains(ParaName)).OrderBy(x => x.Sort).ToListAsync();
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|