fix 移除学历比较(敏感信息)

This commit is contained in:
2025-07-04 11:49:48 +08:00
parent 3c8fe7c0bb
commit fe87266316
3 changed files with 54 additions and 56 deletions

View File

@@ -207,6 +207,7 @@ public class GainfoService : IGainfoService
if (gainfo == null)
{
//开启同步处理
//todo 逻辑错误,但是不影响使用
await _jinkoSapService.GetPersonsByCodeAsync(code);
gainfo = await _gainfoStore.Queryable().Where(x => x.Code == code).SingleAsync();
if (gainfo == null) return null;
@@ -273,7 +274,7 @@ public class GainfoService : IGainfoService
.Where(x => (x.IsEnterDoorArea && x.DoorStatus != VisitorAppointmentDetailStatusEnumType.Leave)
|| (x.IsEnterWorkplace && x.WorkplaceStatus != VisitorAppointmentDetailStatusEnumType.Leave))
.ToListAsync();
// 对每条未离开的访客预约明细,调用预约服务进行强制离开处理
foreach (var visitorAppointment in visitorAppointmentDetails)
{
@@ -287,7 +288,7 @@ public class GainfoService : IGainfoService
await _dbContext.Deleteable<GainfoGroupRelationshipEntity>().Where(x => x.UserNo == gainfo.No).ExecuteCommandAsync();
await _dbContext.Deleteable<DevicePermissionEntity>().Where(x => x.AssignType == AssignTypeEnumType.User && x.AssignValue == gainfo.No).ExecuteCommandAsync();
}
//先写入离职表
gainfo.IdentityUserId = (int)gainfo.Id; //记录原始id
gainfo.ResignationDate = request.Date;