fix 离职导致不显示问题

This commit is contained in:
2025-05-13 10:30:42 +08:00
parent b80ea0a771
commit ea1832894e

View File

@@ -161,6 +161,10 @@ public class WorkGridService : IWorkGridService
.Where(p => p.Code == x.LeaderUserCode && p.Factory == factory)
.Any()
||
SqlFunc.Subqueryable<GainfoLeaveEntity>()
.Where(p => p.Code == x.LeaderUserCode && p.Factory == factory)
.Any()
||
SqlFunc.Subqueryable<WorkGridUserEntity>()
.LeftJoin<GainfoEntity>((p, pga) => p.UserCode == pga.Code)
.Where(p => p.WorkGridCode == x.Code)