fix 不再支持老系统档案号
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user