瀏覽代碼

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

临城职教中职
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)
{


Loading…
取消
儲存