refactor(dict): Delete方法增加空集合检查

This commit is contained in:
Argo Zhang 2019-05-18 16:15:44 +08:00
parent d98204537e
commit 0559a2cbb4
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ namespace Bootstrap.DataAccess
value = value.Where(v => !systemDicts.Any(d => d.Id == v));
if (!value.Any()) return true;
}
if (!value.Any()) return true;
var ret = DbContextManager.Create<Dict>().Delete(value);
CacheCleanUtility.ClearCache(dictIds: value);
return ret;