修改缓存

usertest
jianghaiqing 4 months ago
parent d3db287d65
commit cedb49ef24

@ -226,7 +226,7 @@ public class CodeCountryService:ICodeCountryService
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonCodeCountry, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonCodeCountry, "DS8");
}
return DataResult<List<CodeCountryRes>>.Success(list);
@ -245,7 +245,7 @@ public class CodeCountryService:ICodeCountryService
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonCodeCountry, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonCodeCountry, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -224,7 +224,7 @@ public class CodeCtnService:ICodeCtnService
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonCodeCtn, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonCodeCtn, "DS8");
}
return DataResult<List<CodeCtnRes>>.Success(list);
@ -243,7 +243,7 @@ public class CodeCtnService:ICodeCtnService
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonCodeCtn, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonCodeCtn, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -221,7 +221,7 @@ public class CodeIssueTypeService:ICodeIssueTypeService
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonCodeIssueType, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonCodeIssueType, "DS8");
}
return DataResult<List<CodeIssueTypeRes>>.Success(list);
@ -240,7 +240,7 @@ public class CodeIssueTypeService:ICodeIssueTypeService
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonCodeIssueType, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonCodeIssueType, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -220,7 +220,7 @@ public class CodeLanesService:ICodeLanesService
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonCodeLanes, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonCodeLanes, "DS8");
}
return DataResult<List<CodeLanesRes>>.Success(list);
@ -239,7 +239,7 @@ public class CodeLanesService:ICodeLanesService
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonCodeLanes, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonCodeLanes, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -222,7 +222,7 @@ public class CodePortService:ICodePortService
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonCodePort, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonCodePort, "DS8");
}
return DataResult<List<CodePortRes>>.Success(list);
@ -241,7 +241,7 @@ public class CodePortService:ICodePortService
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonCodePort, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonCodePort, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -233,7 +233,7 @@ public class CodeVesselService : ICodeVesselService
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonCodeVessel, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonCodeVessel, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -168,7 +168,7 @@ namespace DS.WMS.Core.Map.Method
{
if(isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonMappingCarrier, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonMappingCarrier, "DS8");
}
return DataResult<List<MappingCarrierRes>>.Success(list);
@ -187,7 +187,7 @@ namespace DS.WMS.Core.Map.Method
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonMappingCarrier, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonMappingCarrier, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -161,7 +161,7 @@ namespace DS.WMS.Core.Map.Method
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonMappingIssueType, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonMappingIssueType, "DS8");
}
return DataResult<List<MappingIssueTypeRes>>.Success(list);
@ -180,7 +180,7 @@ namespace DS.WMS.Core.Map.Method
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonMappingIssueType, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonMappingIssueType, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -168,7 +168,7 @@ namespace DS.WMS.Core.Map.Method
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonMappingPort, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonMappingPort, "DS8");
}
return DataResult<List<MappingPortRes>>.Success(list);
@ -187,7 +187,7 @@ namespace DS.WMS.Core.Map.Method
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonMappingPort, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonMappingPort, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -164,7 +164,7 @@ namespace DS.WMS.Core.Map.Method
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonMappingVessel, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonMappingVessel, "DS8");
}
return DataResult<List<MappingVesselRes>>.Success(list);
@ -184,7 +184,7 @@ namespace DS.WMS.Core.Map.Method
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonMappingVessel, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonMappingVessel, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -168,7 +168,7 @@ namespace DS.WMS.Core.Map.Method
{
if (isLoad)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.CommonMappingYard, "DS8");
await _sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.CommonMappingYard, "DS8");
}
return DataResult<List<MappingYardRes>>.Success(list);
@ -187,7 +187,7 @@ namespace DS.WMS.Core.Map.Method
if (rlt.Succeeded)
{
await _sysCacheService.SetCommonCode(JsonConvert.SerializeObject(rlt.Data), Sys.Method.SysCacheCategoryEnum.CommonMappingYard, "DS8");
await _sysCacheService.SetCommonCode(rlt.Data, Sys.Method.SysCacheCategoryEnum.CommonMappingYard, "DS8");
return DataResult.Successed(MultiLanguageConst.LoadCacheSucc);
}

@ -209,7 +209,7 @@ namespace DS.WMS.Core.TaskPlat.Method
{
if (isLoad)
{
await sysCacheService.SetCommonCode(JsonConvert.SerializeObject(list), Sys.Method.SysCacheCategoryEnum.TaskAllocationtSet, "DS8");
await sysCacheService.SetCommonCode(list, Sys.Method.SysCacheCategoryEnum.TaskAllocationtSet, "DS8");
}
return DataResult<List<TaskAllocationtSetDto>>.Success(list);

Loading…
Cancel
Save