修改检查时间
parent
16a38b4e4d
commit
fe6ac1a8be
|
@ -985,7 +985,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
|||
bodyPart=x.BodyPartForEdit,
|
||||
seriesNum=x.SeriesCount,
|
||||
fileNum = x.InstanceCount,
|
||||
studyTime=x.StudyTime.ToString("yyyy-MM-dd")
|
||||
studyTime=x.StudyTime?.ToString("yyyy-MM-dd")
|
||||
|
||||
})
|
||||
});
|
||||
|
|
|
@ -130,23 +130,24 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
|
||||
|
||||
//var verificationRecord = await _repository
|
||||
// .FirstOrDefaultAsync<VerificationCode>(t => (t.EmailOrPhone == userInfo.EmailOrPhone) && t.Code == userInfo.verificationCode && t.CodeType == userInfo.verificationType);
|
||||
var verificationRecord = await _repository
|
||||
.FirstOrDefaultAsync<VerificationCode>(t => (t.EmailOrPhone == userInfo.EmailOrPhone) && t.Code == userInfo.verificationCode && t.CodeType == userInfo.verificationType);
|
||||
|
||||
////检查数据库是否存在该验证码
|
||||
//if (verificationRecord == null)
|
||||
//{
|
||||
// return ResponseOutput.NotOk("Verification code error");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// //检查验证码是否失效
|
||||
// if (verificationRecord.ExpirationTime < DateTime.Now)
|
||||
// {
|
||||
// return ResponseOutput.NotOk("The verification code has expired");
|
||||
// }
|
||||
// else //验证码正确 并且 没有超时
|
||||
//检查数据库是否存在该验证码
|
||||
if (verificationRecord == null)
|
||||
{
|
||||
return ResponseOutput.NotOk("Verification code error");
|
||||
}
|
||||
else
|
||||
{
|
||||
//检查验证码是否失效
|
||||
if (verificationRecord.ExpirationTime < DateTime.Now)
|
||||
{
|
||||
return ResponseOutput.NotOk("The verification code has expired");
|
||||
}
|
||||
else //验证码正确 并且 没有超时
|
||||
{
|
||||
|
||||
TrialSiteSurvey dbEntity = null;
|
||||
|
||||
|
||||
|
@ -295,7 +296,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
});
|
||||
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace IRaCIS.Core.Application.MediatR.Handlers
|
|||
{
|
||||
SubjectVisitId = sv.Id,
|
||||
SiteCode = trialSite.TrialSiteCode,
|
||||
StudyDate = study.StudyTime.ToString("yyyy-MM-dd"),
|
||||
StudyDate = study.StudyTime == null?string.Empty: ((DateTime)study.StudyTime).ToString("yyyy-MM-dd"),
|
||||
StudyId = study.Id,
|
||||
Modality = study.Modalities,
|
||||
SubjectCode = subject.Code,
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public bool IsOverWindowNowNotOverWindow { get; set; }
|
||||
|
||||
public DateTime StudyTime { get; set; }
|
||||
public DateTime? StudyTime { get; set; }
|
||||
|
||||
public string HistoryWindow { get; set; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue