diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs index b14b1091b..8ce671d6c 100644 --- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs @@ -2301,7 +2301,7 @@ public class VisitTaskService(IRepository _visitTaskRepository, #region 分割 Dictionary segmentationRelationship = new Dictionary() { }; - var segmentationList = await _segmentationRepository.Where(t => t.VisitTaskId == origenalTask.Id).ToListAsync(); + var segmentationList = _segmentationRepository.Where(t => t.VisitTaskId == origenalTask.Id).ToList(); foreach (var item in segmentationList) { @@ -2314,7 +2314,7 @@ public class VisitTaskService(IRepository _visitTaskRepository, Dictionary segmentRelationship = new Dictionary() { }; - var segmentList = await _segmentRepository.Where(t => t.VisitTaskId == origenalTask.Id).ToListAsync(); + var segmentList = _segmentRepository.Where(t => t.VisitTaskId == origenalTask.Id).ToList(); foreach (var item in segmentList) { var newSegmentationId = NewId.NextSequentialGuid(); @@ -2327,7 +2327,7 @@ public class VisitTaskService(IRepository _visitTaskRepository, item.VisitTaskId = newTask.Id; } - var segmentBindingList = await _segmentBindingRepository.Where(x => x.VisitTaskId == origenalTask.Id).ToListAsync(); + var segmentBindingList = _segmentBindingRepository.Where(x => x.VisitTaskId == origenalTask.Id).ToList(); foreach (var item in segmentBindingList) {