fix: 修复保存方法错误

This commit is contained in:
Argo-Tianyi 2022-01-12 12:56:02 +08:00
parent cf164c57c7
commit eb3ce91948
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class DictService : IDict
private bool SaveDict(Dict dict)
{
var ret = FreeSql.Update<Dict>().Where(s => s.Category == dict.Category && s.Name == dict.Code).Set(s => s.Code, dict.Code).ExecuteAffrows() > 0;
var ret = FreeSql.Update<Dict>().Where(s => s.Category == dict.Category && s.Name == dict.Name).Set(s => s.Code, dict.Code).ExecuteAffrows() > 0;
if (ret)
{
// 更新缓存