diff --git a/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs index ab458ec4..2dc74c46 100644 --- a/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs @@ -323,7 +323,7 @@ public class AppointmentService : IAppointmentService var detail = await _dbContext.Queryable().Where(x => x.Id == detailId).SingleAsync(); detail.ThrowIfNull("数据不存在"); - var areaCodes = GetValidAreaCodes(detail, false).ToList(); + var areaCodes = GetValidAreaCodes(detail, true).ToList(); if (areaCodes.IsEmpty()) return new List(); var existsAreaCodes = await _dbContext.Queryable().Where(x => areaCodes.Contains(x.CustomCode)).Select(x => x.CustomCode).ToListAsync();