fix 注释+设备密码脱敏
This commit is contained in:
@@ -267,13 +267,14 @@ public class GainfoService : IGainfoService
|
||||
|
||||
if (gainfo.Type == GainfoUserTypeEnumType.External)
|
||||
{
|
||||
//获取人员所有的访客申请
|
||||
// 查询当前外部人员的访客预约明细,筛选出尚未离开门区或工作区的记录
|
||||
var visitorAppointmentDetails = await _dbContext.Queryable<VisitorAppointmentDetailEntity>()
|
||||
.Where(x => x.UserNo == gainfo.No)
|
||||
.Where(x => (x.IsEnterDoorArea && x.DoorStatus != VisitorAppointmentDetailStatusEnumType.Leave)
|
||||
|| (x.IsEnterWorkplace && x.WorkplaceStatus != VisitorAppointmentDetailStatusEnumType.Leave))
|
||||
.ToListAsync();
|
||||
|
||||
|
||||
// 对每条未离开的访客预约明细,调用预约服务进行强制离开处理
|
||||
foreach (var visitorAppointment in visitorAppointmentDetails)
|
||||
{
|
||||
await _appointmentService.FocusLeaveAsync(visitorAppointment.Id, request.Reason);
|
||||
@@ -286,7 +287,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;
|
||||
|
||||
Reference in New Issue
Block a user