Test.EIImageViewer
hang 2022-07-26 13:53:27 +08:00
parent fab3da327b
commit 5dde634cd0
1 changed files with 2 additions and 2 deletions

View File

@ -93,10 +93,10 @@ namespace IRaCIS.Core.Application.Service.Allocation
{
await _subjectUserRepository.AddAsync(new SubjectUser() {TrialId=command.TrialId, ArmEnum = doctorArm.ArmEnum, DoctorUserId = doctorArm.DoctorUserId, SubjectId = subjectId, AssignTime = DateTime.Now });
await _visitTaskRepository.BatchUpdateNoTrackingAsync(t => t.SubjectId == command.SubjectId && t.DoctorUserId == command.DoctorUserId && t.ArmEnum == command.ArmEnum && t.TrialId==command.TrialId, u => new VisitTask()
await _visitTaskRepository.BatchUpdateNoTrackingAsync(t => t.SubjectId == subjectId && t.DoctorUserId == doctorArm.DoctorUserId && t.ArmEnum == doctorArm.ArmEnum && t.TrialId==command.TrialId, u => new VisitTask()
{
AllocateTime = DateTime.Now,
DoctorUserId = command.DoctorUserId,
DoctorUserId = doctorArm.DoctorUserId,
TaskAllocationState = TaskAllocationState.Allocated
});