fix 重新入职问题导致数据过滤错误
This commit is contained in:
@@ -40,6 +40,7 @@ public class UserService : IUserService
|
||||
var userLeaveCodes = await _dbContext.Queryable<GainfoLeaveEntity>()
|
||||
.Where(x => x.Factory == tenant)
|
||||
.Where(x => roleUserCodes.Contains(x.Code))
|
||||
.Where(x => SqlFunc.Subqueryable<GainfoEntity>().Where(p => p.Code == x.Code).NotAny())
|
||||
.Select(x => x.Code)
|
||||
.ToListAsync();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user