booking_auth_dev
wet 2 years ago
parent 89f3875f62
commit 43289cd1d9

@ -201,7 +201,7 @@ public class SysDictDataService : ISysDictDataService, IDynamicApiController, IT
[NonAction] [NonAction]
public async Task CacheData() public async Task CacheData()
{ {
var list = await _sysDictDataRep.AsQueryable().InnerJoin<SysDictType>((d, t) => d.TypeId == t.Id).Where((d, t) => t.Status == CommonStatus.ENABLE && d.Status == CommonStatus.ENABLE).Select((d, t) => new DictDataDto var list = await _sysDictDataRep.AsQueryable().InnerJoin<SysDictType>((d, t) => d.TypeId == t.Id).Filter(null, true).Where((d, t) => t.Status == CommonStatus.ENABLE && d.Status == CommonStatus.ENABLE).Select((d, t) => new DictDataDto
{ {
Id = d.Id, Id = d.Id,
TypeName = t.Name, TypeName = t.Name,

@ -185,7 +185,7 @@ namespace Myshipping.Core.Service
public async Task CacheData() public async Task CacheData()
{ {
var list = await _valuerep.AsQueryable().ToListAsync(); var list = await _valuerep.AsQueryable().Filter(null, true).ToListAsync();
await _cache.SetAllTenantParam(list); await _cache.SetAllTenantParam(list);
} }

Loading…
Cancel
Save