jianghaiqing 10 months ago
commit 7988ee68a7

@ -157,7 +157,7 @@ namespace Myshipping.Application
[NonAction]
public async Task<List<FeeCodeCacheDto>> CacheFeeCode()
{
var allFeeCode = await _repCode.AsQueryable().Filter(null, true).ToListAsync();
var allFeeCode = await _repCode.AsQueryable().Filter(null, true).Where(x => !x.IsDeleted).ToListAsync();
var cacheFeeCode = allFeeCode.Adapt<List<FeeCodeCacheDto>>();
await _cache.SetTimeoutAsync(CommonConst.CACHE_KEY_FEE_CODE, cacheFeeCode, new TimeSpan(6, 0, 0));

@ -147,7 +147,7 @@ namespace Myshipping.Application
[NonAction]
public async Task<List<FeeCurrencyCacheDto>> CacheFeeCurrency()
{
var allFeeCurrency = await _repCode.AsQueryable().Filter(null, true).ToListAsync();
var allFeeCurrency = await _repCode.AsQueryable().Filter(null, true).Where(x => !x.IsDeleted).ToListAsync();
var cacheFeeCode = allFeeCurrency.Adapt<List<FeeCurrencyCacheDto>>();
await _cache.SetTimeoutAsync(CommonConst.CACHE_KEY_FEE_CURRENCY, cacheFeeCode, new TimeSpan(6, 0, 0));

Loading…
Cancel
Save