fix 增加离职人员判断
This commit is contained in:
@@ -548,6 +548,13 @@ public class DevicePermissionService : IDevicePermissionService
|
|||||||
.Select(x => x.No)
|
.Select(x => x.No)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
var userNoLeaves = await _dbContext.Queryable<GainfoLeaveEntity>()
|
||||||
|
.Where(x => userCodes.Contains(x.Code))
|
||||||
|
.Select(x => x.No)
|
||||||
|
.ToListAsync();
|
||||||
|
|
||||||
|
userNos.AddRange(userNoLeaves);
|
||||||
|
|
||||||
await _dbContext.Updateable<DeviceUserEntity>()
|
await _dbContext.Updateable<DeviceUserEntity>()
|
||||||
.SetColumns(x => x.IsDeleted == true)
|
.SetColumns(x => x.IsDeleted == true)
|
||||||
.SetColumns(x => x.ModifiedTime == DateTime.Now)
|
.SetColumns(x => x.ModifiedTime == DateTime.Now)
|
||||||
|
|||||||
Reference in New Issue
Block a user