This commit is contained in:
2025-05-26 14:24:57 +08:00
parent 6528d29404
commit 80f845f630

View File

@@ -323,7 +323,7 @@ public class AppointmentService : IAppointmentService
var detail = await _dbContext.Queryable<VisitorAppointmentDetailEntity>().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<string>();
var existsAreaCodes = await _dbContext.Queryable<AppointmentAreaEntity>().Where(x => areaCodes.Contains(x.CustomCode)).Select(x => x.CustomCode).ToListAsync();