修改site 启用时间逻辑
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-06-18 19:36:57 +08:00
parent 7680e90d65
commit 5f11c3a602
1 changed files with 2 additions and 7 deletions

View File

@ -133,12 +133,7 @@ namespace IRaCIS.Core.Application.Services
foreach (var item in addArray) foreach (var item in addArray)
{ {
if (item.IsDeleted) if (item.IsDeleted==false)
{
item.EnabledTime = null;
}
else
{ {
item.EnabledTime = DateTime.Now; item.EnabledTime = DateTime.Now;
} }
@ -210,7 +205,7 @@ namespace IRaCIS.Core.Application.Services
dbEntity.EnabledTime = null; dbEntity.EnabledTime = null;
} }
else else if (editTrialSiteCommand.IsDeleted==false && dbEntity.EnabledTime==null)
{ {
dbEntity.EnabledTime = DateTime.Now; dbEntity.EnabledTime = DateTime.Now;
} }