fix 枚举调整

This commit is contained in:
cheche
2024-01-31 11:02:41 +08:00
parent 29944fb5d3
commit 21bd830002
5 changed files with 13 additions and 11 deletions

View File

@@ -51,7 +51,7 @@ public class DeviceTaskAssignmentService : IDeviceTaskAssignmentService
{
//获取启用的功能设备
var devices = await _dbContext.Queryable<DeviceEntity>()
.Where(x => x.Funcs.Contains(request.type))
.Where(x => x.Type == request.type)
.Select(x => x.UniqueNo)
.ToListAsync();
devices.ThrowIfNull($"{request.type.GetDescription}功能机器为空");