fix 不再支持老系统档案号

This commit is contained in:
2026-02-03 18:57:12 +08:00
parent 67481931fc
commit f43c2d6c59
6 changed files with 3 additions and 188 deletions

View File

@@ -132,7 +132,9 @@ public class AppointmentAreaService : IAppointmentAreaService
public async Task<List<Guid>> GetAssignmentsAsync(string customCode)
{
return await _dbContext.Queryable<AppointmentAreaAssignmentEntity>()
.Where(x => x.CustomCode == customCode).Select(x => x.DeviceGroupCode)
.LeftJoin<DeviceGroupEntity>((x, dg) => x.DeviceGroupCode == dg.Code)
.Where((x, dg) => x.CustomCode == customCode && dg.AsAppointment)
.Select(x => x.DeviceGroupCode)
.ToListAsync();
}