fix 修复已知问题
This commit is contained in:
@@ -13,5 +13,5 @@ public class AppointmentAreaAssignRequest
|
||||
/// <summary>
|
||||
/// 设备分组
|
||||
/// </summary>
|
||||
public List<Guid> DeviceGroupCodes { get; set; }
|
||||
public IEnumerable<Guid> DeviceGroupCodes { get; set; }
|
||||
}
|
||||
@@ -51,8 +51,10 @@ public class AppointmentAreaService : IAppointmentAreaService
|
||||
|
||||
public async Task AssignAsync(AppointmentAreaAssignRequest request)
|
||||
{
|
||||
(await _dbContext.Queryable<AppointmentAreaEntity>().Where(x => x.CustomCode == request.CustomCode).AnyAsync())
|
||||
.ThrowIfFalse("区域不存在");
|
||||
(await _dbContext.Queryable<AppointmentAreaEntity>()
|
||||
.Where(x => x.CustomCode == request.CustomCode)
|
||||
.AnyAsync()
|
||||
).ThrowIfFalse("区域不存在");
|
||||
|
||||
(await _dbContext.Queryable<DeviceGroupEntity>()
|
||||
.Where(x => request.DeviceGroupCodes.Contains(x.Code))
|
||||
|
||||
Reference in New Issue
Block a user