|
|
@@ -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) |
|
|
|
{ |
|
|
|