😎1、获取缓存值若Key经过URL编码则进行解码 2、优化枚举转字典 3、升级npm包依赖
This commit is contained in:
parent
28a0204924
commit
af2fd572d5
@ -70,7 +70,7 @@ public class EnumToDictJob : IJob
|
||||
});
|
||||
try
|
||||
{
|
||||
db.Ado.BeginTran();
|
||||
db.BeginTran();
|
||||
|
||||
if (uSysDictType.Count > 0)
|
||||
await db.Updateable(uSysDictType).ExecuteCommandAsync(stoppingToken);
|
||||
@ -78,11 +78,11 @@ public class EnumToDictJob : IJob
|
||||
if (uSysDictData.Count > 0)
|
||||
await db.Updateable(uSysDictData).ExecuteCommandAsync(stoppingToken);
|
||||
|
||||
db.Ado.CommitTran();
|
||||
db.CommitTran();
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
db.Ado.RollbackTran();
|
||||
db.RollbackTran();
|
||||
Log.Error($"{context.Trigger.Description}更新枚举转换字典入库错误:" + _jsonSerializer.Serialize(error));
|
||||
throw new Exception($"{context.Trigger.Description}更新枚举转换字典入库错误");
|
||||
}
|
||||
@ -123,7 +123,7 @@ public class EnumToDictJob : IJob
|
||||
});
|
||||
try
|
||||
{
|
||||
db.Ado.BeginTran();
|
||||
db.BeginTran();
|
||||
|
||||
if (iDictType.Count > 0)
|
||||
await db.Insertable(iDictType).ExecuteCommandAsync(stoppingToken);
|
||||
@ -131,11 +131,11 @@ public class EnumToDictJob : IJob
|
||||
if (iDictData.Count > 0)
|
||||
await db.Insertable(iDictData).ExecuteCommandAsync(stoppingToken);
|
||||
|
||||
db.Ado.CommitTran();
|
||||
db.CommitTran();
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
db.Ado.RollbackTran();
|
||||
db.RollbackTran();
|
||||
Log.Error($"{context.Trigger.Description}新增枚举转换字典入库错误:" + _jsonSerializer.Serialize(error));
|
||||
throw new Exception($"{context.Trigger.Description}新增枚举转换字典入库错误");
|
||||
}
|
||||
|
||||
@ -144,6 +144,10 @@ public class SysCacheService : IDynamicApiController, ISingleton
|
||||
[DisplayName("获取缓存值")]
|
||||
public object GetValue(string key)
|
||||
{
|
||||
// 若Key经过URL编码则进行解码
|
||||
if (Regex.IsMatch(key, @"%[0-9a-fA-F]{2}"))
|
||||
key = HttpUtility.UrlDecode(key);
|
||||
|
||||
return _cacheProvider.Cache == Cache.Default
|
||||
? _cacheProvider.Cache.Get<object>($"{_cacheOptions.Prefix}{key}")
|
||||
: _cacheProvider.Cache.Get<string>($"{_cacheOptions.Prefix}{key}");
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
"echarts": "^5.5.1",
|
||||
"echarts-gl": "^2.0.9",
|
||||
"echarts-wordcloud": "^2.1.0",
|
||||
"element-plus": "^2.7.6",
|
||||
"element-plus": "^2.7.7",
|
||||
"exceljs": "^4.4.0",
|
||||
"ezuikit": "^1.0.0",
|
||||
"ezuikit-js": "^8.0.5",
|
||||
@ -68,8 +68,8 @@
|
||||
"vue-signature-pad": "^3.0.2",
|
||||
"vue3-tree-org": "^4.2.2",
|
||||
"vuedraggable": "4.0.3",
|
||||
"vxe-pc-ui": "^4.0.61",
|
||||
"vxe-table": "^4.7.48",
|
||||
"vxe-pc-ui": "^4.0.64",
|
||||
"vxe-table": "^4.7.49",
|
||||
"vxe-table-plugin-element": "^4.0.4",
|
||||
"vxe-table-plugin-export-xlsx": "^4.0.5",
|
||||
"xe-utils": "^3.5.28",
|
||||
|
||||
@ -104,4 +104,9 @@ export const dataTypeList = [
|
||||
hasLength: false,
|
||||
hasDecimalDigits: false,
|
||||
},
|
||||
{
|
||||
value: 'boolean',
|
||||
hasLength: false,
|
||||
hasDecimalDigits: false,
|
||||
},
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user