Bläddra i källkod

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

临城职教中职
ndbs 2 år sedan
förälder
incheckning
cb0a1e7094
1 ändrade filer med 5 tillägg och 1 borttagningar
  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 Visa fil

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


Laddar…
Avbryt
Spara