diff --git a/IRaCIS.Core.Application/Service/Document/EmailSendService.cs b/IRaCIS.Core.Application/Service/Document/EmailSendService.cs
index e3569f5e9..47242c497 100644
--- a/IRaCIS.Core.Application/Service/Document/EmailSendService.cs
+++ b/IRaCIS.Core.Application/Service/Document/EmailSendService.cs
@@ -120,7 +120,7 @@ namespace IRaCIS.Core.Application.Service
///
public async Task SendTrialImageQCTaskEmailAsync(Guid trialId)
{
- var trialInfo = _repository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr }).FirstOrDefault();
+ var trialInfo = _repository.Where(t => t.Id == trialId).Select(t => new { t.ResearchProgramNo, t.ExperimentName, t.TrialCode, t.TrialStatusStr }).FirstNotNullAsync();
//找到 该项目的IQC 用户Id
var userList = await _repository.Where(t => t.TrialId == trialId).Where(t => t.User.UserTypeEnum == UserTypeEnum.IQC).Select(t => new { t.UserId, t.User.FullName }).ToListAsync();
diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs
index 20b6138a6..eeb90d390 100644
--- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs
+++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs
@@ -260,7 +260,7 @@ namespace IRaCIS.Core.Application.Contracts
var currentLatest = dbEntityList.OrderByDescending(t => t.CreateTime).FirstOrDefault();
- if (currentLatest.Email != userInfo.EmailOrPhone)
+ if (currentLatest!.Email != userInfo.EmailOrPhone)
{
//---该中心下已经有其他用户已填写的调研表,您不被允许继续填写
return ResponseOutput.NotOk(_localizer["TrialSiteSurvey_AlreadyFilledByOtherUsers"]);
diff --git a/IRaCIS.Core.Application/TestService.cs b/IRaCIS.Core.Application/TestService.cs
index fb175609a..aea881b0c 100644
--- a/IRaCIS.Core.Application/TestService.cs
+++ b/IRaCIS.Core.Application/TestService.cs
@@ -46,25 +46,34 @@ namespace IRaCIS.Application.Services
}
-
-
[AllowAnonymous]
- public async Task InternationazitionInit()
+ public async Task GetMemoryStoreData()
{
- var rows = await MiniExcel.QueryAsync(@"C:\Users\Administrator\Desktop\Export\vue.xlsx");
+
- foreach (var row in rows)
- {
- await _repository.InsertOrUpdateAsync(row);
-
- }
-
- await _repository.SaveChangesAsync();
-
- return ResponseOutput.Ok();
+ return ResponseOutput.Ok(new { StaticData.En_US_Dic , StaticData.Zh_CN_Dic });
}
+
+
+ //[AllowAnonymous]
+ //public async Task InternationazitionInit()
+ //{
+
+
+ // var rows = await MiniExcel.QueryAsync(@"C:\Users\Administrator\Desktop\Export\vue.xlsx");
+
+ // foreach (var row in rows)
+ // {
+ // await _repository.InsertOrUpdateAsync(row);
+
+ // }
+
+ // await _repository.SaveChangesAsync();
+
+ // return ResponseOutput.Ok();
+ //}
[AllowAnonymous]
[UnitOfWork]
public async Task Get()