feat 设备考勤记录考勤上传

This commit is contained in:
2024-01-11 16:31:23 +08:00
parent 353844f348
commit 5d1b3ad0f7
7 changed files with 77 additions and 8 deletions

View File

@@ -36,12 +36,12 @@ public class DevicePermissionService : IDevicePermissionService
}
}
public async Task<List<Guid>> GetAssignmentsAsync(string userId, DeviceAssignmentTypeEnumType uniqueType, Guid? uniqueValue)
public async Task<List<Guid>> GetAssignmentsAsync(string userNo, DeviceAssignmentTypeEnumType uniqueType, Guid? uniqueValue)
{
var assignments = await _dbContext.Queryable<DevicePermissionEntity>()
.Where(x => x.UniqueType == uniqueType)
.WhereIF(uniqueValue.HasValue, x => x.UniqueValue == uniqueValue)
.Where(x => x.UserNo == userId)
.Where(x => x.UserNo == userNo)
.Select(x => x.UniqueValue)
.ToListAsync();