租户参数

booking_auth_dev
wet 2 years ago
parent ca94d57c1f
commit 8eca47f20a

@ -232,7 +232,7 @@ namespace Myshipping.Core.Service
[HttpGet("/DJYTenantParam/getParamValue")] [HttpGet("/DJYTenantParam/getParamValue")]
public async Task<List<DjyTenantParamValue>> GetParamValue(long tenantId, string paraCode=null) public async Task<List<DjyTenantParamValue>> GetParamValue(long tenantId, string paraCode=null)
{ {
return await _valuerep.AsQueryable().Where(x => x.TenantId == tenantId).WhereIF(paraCode!=null,x=>x.ParaCode==paraCode).OrderBy(x => x.Sort).ToListAsync(); return await _valuerep.AsQueryable().Filter(null, true).Where(x => x.TenantId == tenantId).WhereIF(paraCode!=null,x=>x.ParaCode==paraCode).OrderBy(x => x.Sort).ToListAsync();
} }
/// <summary> /// <summary>
/// 增加参数 /// 增加参数

Loading…
Cancel
Save