feat 设备考勤记录考勤上传
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user