Преглед на файлове

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

临城职教中职
ndbs преди 2 години
родител
ревизия
cb0a1e7094
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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 Целия файл

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


Зареждане…
Отказ
Запис