|
|
@ -434,7 +434,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodeCarrier(List<CodeCarrier> list)
|
|
|
|
public Task SetAllCodeCarrier(List<CodeCarrier> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CARRIER, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CARRIER, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -443,7 +443,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodeVessel(List<CodeVessel> list)
|
|
|
|
public Task SetAllCodeVessel(List<CodeVessel> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_VESSEL, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_VESSEL, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -452,7 +452,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodeForwarder(List<CodeForwarder> list)
|
|
|
|
public Task SetAllCodeForwarder(List<CodeForwarder> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FORWARDER, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -461,7 +461,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodeYard(List<CodeYard> list)
|
|
|
|
public Task SetAllCodeYard(List<CodeYard> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_YARD, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_YARD, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -470,7 +470,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodePortLoad(List<CodePortLoad> list)
|
|
|
|
public Task SetAllCodePortLoad(List<CodePortLoad> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORTLOAD, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -479,7 +479,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodePort(List<CodePort> list)
|
|
|
|
public Task SetAllCodePort(List<CodePort> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORT, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PORT, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -488,7 +488,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodePackage(List<CodePackage> list)
|
|
|
|
public Task SetAllCodePackage(List<CodePackage> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_PACKAGE, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -497,7 +497,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodeService(List<CodeService> list)
|
|
|
|
public Task SetAllCodeService(List<CodeService> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_SERVICE, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_SERVICE, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -506,7 +506,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodeCtn(List<CodeCtn> list)
|
|
|
|
public Task SetAllCodeCtn(List<CodeCtn> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CTN, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_CTN, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -515,7 +515,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllCodeFrt(List<CodeFrt> list)
|
|
|
|
public Task SetAllCodeFrt(List<CodeFrt> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FRT, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_FRT, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -524,7 +524,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllMappingCtn(List<MappingCtn> list)
|
|
|
|
public Task SetAllMappingCtn(List<MappingCtn> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CTN, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CTN, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -533,7 +533,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllMappingCarrier(List<MappingCarrier> list)
|
|
|
|
public Task SetAllMappingCarrier(List<MappingCarrier> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CARRIER, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_CARRIER, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -542,7 +542,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllMappingFrt(List<MappingFrt> list)
|
|
|
|
public Task SetAllMappingFrt(List<MappingFrt> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FRT, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_FRT, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -551,7 +551,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllMappingVessel(List<MappingVessel> list)
|
|
|
|
public Task SetAllMappingVessel(List<MappingVessel> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_VESSEL, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -560,7 +560,7 @@ public class SysCacheService : ISysCacheService, IDynamicApiController, ISinglet
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public Task SetAllMappingYard(List<MappingYard> list)
|
|
|
|
public Task SetAllMappingYard(List<MappingYard> list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_YARD, list, TimeSpan.FromMinutes(5));
|
|
|
|
return _cache.SetAsync(CommonConst.CACHE_KEY_COMMON_DB_MAPPING_YARD, list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|