fix 枚举修改报错
This commit is contained in:
@@ -88,6 +88,9 @@ public class DeviceResponse
|
||||
}
|
||||
}
|
||||
|
||||
public DeviceTypeEnumType Type { get; set; }
|
||||
public string TypeDesc => Type.GetDescription();
|
||||
|
||||
/// <summary>
|
||||
/// 连接信息
|
||||
/// </summary>
|
||||
|
||||
@@ -236,7 +236,7 @@ public class DeviceService : IDeviceService
|
||||
}, true)
|
||||
.ToListAsync();
|
||||
|
||||
return devices.Where(x => x.Funcs.Contains(DeviceFuncEnumType.Attendance)).ToList();
|
||||
return devices.Where(x => x.Type == DeviceTypeEnumType.Attendance).ToList();
|
||||
}
|
||||
|
||||
public async Task<DeviceNumberResponse> GetDeviceNumberAsync()
|
||||
|
||||
Reference in New Issue
Block a user