From cb0a1e7094571e80f774cd200a36a711b06062fe Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 24 Feb 2022 10:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=20=E5=AE=9A=E6=97=B6=E5=A4=87=E4=BB=BD=E8=AE=BE=E7=BD=AE=20?= =?UTF-8?q?=E5=90=AF=E7=94=A8=E6=88=96=E7=A6=81=E7=94=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sys_DataBaseBackupSet/Sys_DataBaseBackupSetService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/Sys_DataBaseBackupSet/Sys_DataBaseBackupSetService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/Sys_DataBaseBackupSet/Sys_DataBaseBackupSetService.cs index 19efdbf98..46d145c89 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/Sys_DataBaseBackupSet/Sys_DataBaseBackupSetService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/Sys_DataBaseBackupSet/Sys_DataBaseBackupSetService.cs @@ -122,6 +122,10 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop { try { + if (entity.EnabledMark == 1) + { + this.BaseRepository("BaseDb").ExecuteBySql("update Sys_DataBaseBackupSet set EnabledMark = 0 "); + } if (!string.IsNullOrEmpty(keyValue)) { entity.Modify(keyValue); @@ -152,7 +156,7 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop { try { - return Convert.ToInt32(BaseRepository().FindObject("select count(1) from Sys_DataBaseBackupSet")); + return Convert.ToInt32(BaseRepository().FindObject("select count(1) from Sys_DataBaseBackupSet where EnabledMark =1 ")); } catch (Exception ex) {