mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
【修复】修复打印机管理列表数据编辑的情况下,未取消其他打印机默认的问题。
This commit is contained in:
@@ -89,6 +89,12 @@ namespace CoreCms.Net.Repository
|
||||
|
||||
//事物处理过程结束
|
||||
var bl = await DbClient.Updateable(oldModel).ExecuteCommandHasChangeAsync();
|
||||
|
||||
if (bl && oldModel.isDefault)
|
||||
{
|
||||
await DbClient.Updateable<CoreCmsPrinter>().SetColumns(p => p.isDefault == false).Where(p => p.id != oldModel.id).ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
jm.code = bl ? 0 : 1;
|
||||
jm.msg = bl ? GlobalConstVars.EditSuccess : GlobalConstVars.EditFailure;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user