fix 优化提醒
This commit is contained in:
@@ -45,9 +45,11 @@ public class AppointmentService : IAppointmentService
|
||||
var invalids = new[] { GainfoUserTypeEnumType.Normal, GainfoUserTypeEnumType.SecurityWhite };
|
||||
|
||||
var idNos = request.Items.Where(x => x.IsEnterDoorArea).Select(x => x.IdNo).Distinct().ToList();
|
||||
var errors = await _dbContext.Queryable<GainfoEntity>().Where(x => idNos.Contains(x.IdNo) || idNos.Contains(x.Code))
|
||||
var errors = await _dbContext.Queryable<GainfoEntity>()
|
||||
.Where(x => idNos.Contains(x.IdNo) || idNos.Contains(x.Code))
|
||||
.Where(x => invalids.Contains(x.Type))
|
||||
.Select(x => x.Code).ToListAsync();
|
||||
.Select(x => x.IdNo + x.Name)
|
||||
.ToListAsync();
|
||||
|
||||
errors.ThrowIfExists($"内部人员无法发起门岗预约({errors.Join(",")})");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user