From 855f66566f999bf20f04c247f02b43b8aaab8e2b Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 29 Apr 2026 14:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Allocation/VisitTaskService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {