修改site 启用时间逻辑
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
7680e90d65
commit
5f11c3a602
|
@ -133,12 +133,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
|
||||
foreach (var item in addArray)
|
||||
{
|
||||
if (item.IsDeleted)
|
||||
{
|
||||
item.EnabledTime = null;
|
||||
|
||||
}
|
||||
else
|
||||
if (item.IsDeleted==false)
|
||||
{
|
||||
item.EnabledTime = DateTime.Now;
|
||||
}
|
||||
|
@ -210,7 +205,7 @@ namespace IRaCIS.Core.Application.Services
|
|||
dbEntity.EnabledTime = null;
|
||||
|
||||
}
|
||||
else
|
||||
else if (editTrialSiteCommand.IsDeleted==false && dbEntity.EnabledTime==null)
|
||||
{
|
||||
dbEntity.EnabledTime = DateTime.Now;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue