refactor: 更新删除前台应用方法

This commit is contained in:
zhangpeihang 2022-01-19 10:33:30 +08:00
parent 35ed1f654f
commit 6840c1d851
1 changed files with 1 additions and 5 deletions

View File

@ -472,11 +472,7 @@ class DictService : IDict
{
Database.BeginTransaction();
Database.Execute("delete from dicts where Category='应用程序' and Name=@Name and Code=@Code", new { Name = AppName, Code = appId });
Database.Execute("delete from dicts where Category=@Category and Name='网站页脚'", new { Category = AppName });
Database.Execute("delete from dicts where Category=@Category and Name='网站页脚'", new { Category = AppName });
Database.Execute("delete from dicts where Category=@Category and Name='网站标题'", new { Category = AppName });
Database.Execute("delete from dicts where Category=@Category and Name='favicon'", new { Category = AppName });
Database.Execute("delete from dicts where Category=@Category and Name='网站图标'", new { Category = AppName });
Database.Execute("delete from dicts where Category=@Category", new { Category = appId });
Database.CompleteTransaction();
}
catch (Exception)