Parcourir la source

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

临城职教中职
ndbs il y a 2 ans
Parent
révision
cb0a1e7094
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  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 Voir le fichier

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


Chargement…
Annuler
Enregistrer