Uat_Study
parent
0a1074212c
commit
f79d3b0500
|
@ -646,6 +646,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
//[TypeFilter(typeof(TrialResourceFilter))]
|
||||
[HttpPost]
|
||||
[TypeFilter(typeof(TrialResourceFilter))]
|
||||
[UnitOfWork]
|
||||
public async Task<IResponseOutput> TrialSurveySubmit(TrialSiteSurvyeSubmitDTO siteSurvyeSubmit)
|
||||
{
|
||||
|
||||
|
@ -742,6 +743,9 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
}
|
||||
|
||||
//发送邮件的时候需要用到该字段
|
||||
item.SystemUserId = sysUserInfo.Id;
|
||||
|
||||
await _trialSiteUserSurveyRepository.BatchUpdateNoTrackingAsync(t => t.Id == item.Id, u => new TrialSiteUserSurvey() { IsGenerateSuccess = true, SystemUserId = sysUserInfo.Id });
|
||||
|
||||
|
||||
|
@ -762,6 +766,11 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
foreach (var userInfo in joinCommand.UserList)
|
||||
{
|
||||
|
||||
if(userInfo.SystemUserId == null)
|
||||
{
|
||||
throw new BusinessValidationFailedException("生成账户Id 未取到值,请排查");
|
||||
}
|
||||
|
||||
var trialId = joinCommand.TrialId;
|
||||
var userId = (Guid)userInfo.SystemUserId;
|
||||
var siteId = trialSiteSurvey.SiteId;
|
||||
|
|
Loading…
Reference in New Issue