修改一版

This commit is contained in:
he
2022-05-10 15:28:05 +08:00
parent dbca00a1e8
commit fa72980130
2 changed files with 24 additions and 7 deletions
@@ -103,7 +103,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
CreateTime = data.CreateTime,
CreateUserId = data.CreateUserId,
ModuleType = leftmoduleTypec.Id,
BlindName = data.BlindName,
BlindName = leftsubjectVisit.BlindName,
TrialId = data.TrialId,
SiteId = data.SiteId,
SubjectId = data.SubjectId,
@@ -122,7 +122,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
LastName = leftsubject.LastName,
Id = data.Id,
ParentJson = leftparent.JsonDetail,
VisitName = data.SubjectVisitName,
VisitName = leftsubjectVisit.VisitName,
CreateUser = leftuser.UserName,
UserFirstName = leftuser.FirstName,
UserLastName = leftuser.LastName,
@@ -179,10 +179,14 @@ namespace IRaCIS.Core.Application.Service.Inspection
/// <returns></returns>
public async Task RecordSing(SignDTO SignInfo)
{
var verifyResult = await VerifySignatureAsync(SignInfo);
var signId = await AddSignRecordAsync(SignInfo);
_userInfo.SignId = signId;
await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
if (SignInfo != null)
{
var verifyResult = await VerifySignatureAsync(SignInfo);
var signId = await AddSignRecordAsync(SignInfo);
_userInfo.SignId = signId;
await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
}
}
/// <summary>