Kaynağa Gözat

数据库备份 定时备份设置 启用或禁用失败

临城职教中职
ndbs 2 yıl önce
ebeveyn
işleme
cb0a1e7094
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/Sys_DataBaseBackupSet/Sys_DataBaseBackupSetService.cs

+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/Sys_DataBaseBackupSet/Sys_DataBaseBackupSetService.cs Dosyayı Görüntüle

@@ -122,6 +122,10 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
{ {
try try
{ {
if (entity.EnabledMark == 1)
{
this.BaseRepository("BaseDb").ExecuteBySql("update Sys_DataBaseBackupSet set EnabledMark = 0 ");
}
if (!string.IsNullOrEmpty(keyValue)) if (!string.IsNullOrEmpty(keyValue))
{ {
entity.Modify(keyValue); entity.Modify(keyValue);
@@ -152,7 +156,7 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
{ {
try 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) catch (Exception ex)
{ {


Yükleniyor…
İptal
Kaydet