refactor(dict): Delete方法增加空集合检查
This commit is contained in:
parent
d98204537e
commit
0559a2cbb4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue