|
|
@ -137,7 +137,7 @@ namespace Myshipping.Core.Service
|
|
|
|
[NonAction]
|
|
|
|
[NonAction]
|
|
|
|
public async Task CacheData()
|
|
|
|
public async Task CacheData()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!_cacheService.Exists("CommonConst.CACHE_KEY_DJY_EDI_SETTING"))
|
|
|
|
if (!_cacheService.Exists(CommonConst.CACHE_KEY_DJY_EDI_SETTING))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var list = _rep.AsQueryable().Filter(null, true).ToList();
|
|
|
|
var list = _rep.AsQueryable().Filter(null, true).ToList();
|
|
|
|
await _cacheService.SetAllEdiSetting(list);
|
|
|
|
await _cacheService.SetAllEdiSetting(list);
|
|
|
|