fix 枚举修改报错

This commit is contained in:
2024-02-23 17:04:33 +08:00
parent e04954f471
commit 9b8acdb477
2 changed files with 4 additions and 1 deletions

View File

@@ -88,6 +88,9 @@ public class DeviceResponse
}
}
public DeviceTypeEnumType Type { get; set; }
public string TypeDesc => Type.GetDescription();
/// <summary>
/// 连接信息
/// </summary>

View File

@@ -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()