fix 离职切换管理
This commit is contained in:
@@ -198,6 +198,7 @@ public class WorkGridService : IWorkGridService
|
||||
workGrid.ThrowIfNull($"{from}管理的网格不存在");
|
||||
|
||||
var beforeGainfo = await _dbContext.Queryable<GainfoEntity>().Where(x => x.Code == from).SingleAsync();
|
||||
beforeGainfo??=await _dbContext.Queryable<GainfoLeaveEntity>().Where(x => x.Code == from).SingleAsync();
|
||||
beforeGainfo.ThrowIfNull($"{from}人员不存在");
|
||||
|
||||
var gainfo = await _dbContext.Queryable<GainfoEntity>().Where(x => x.Code == to).SingleAsync();
|
||||
|
||||
Reference in New Issue
Block a user