|
@@ -69,8 +69,13 @@ namespace GxPress.Service.Implement.AdminVerify
|
|
|
department = departments.FirstOrDefault(m => m.Id == departmentUsers.FirstOrDefault(n => n.UserId == user.Id).DepartmentId);
|
|
|
}
|
|
|
var group = await _groupRepository.GetAsync(request.SourceId);
|
|
|
+ var query = Q.NewQuery();
|
|
|
+ query.Where(nameof(Entity.AdminVerify.AdminId), userId);
|
|
|
+ query.Where(nameof(Entity.AdminVerify.SourceType), request.SourceType);
|
|
|
+ query.Where(nameof(Entity.AdminVerify.SourceId), group.Id);
|
|
|
+ query.WhereIn(nameof(Entity.AdminVerify.DisposeType), new List<int> { 0, 1 });
|
|
|
//查询是否存在
|
|
|
- adminVerify = await _adminVerifyRepository.GetAsync(Q.Where(nameof(Entity.AdminVerify.AdminId), userId).Where(nameof(Entity.AdminVerify.SourceType), request.SourceType).Where(nameof(Entity.AdminVerify.SourceId), group.Id).WhereIn(nameof(Entity.AdminVerify.DisposeType), new List<int> { 0, 1 }));
|
|
|
+ adminVerify = await _adminVerifyRepository.GetAsync(query);
|
|
|
if (adminVerify != null)
|
|
|
continue;
|
|
|
adminVerify = new Entity.AdminVerify();
|
|
@@ -96,6 +101,7 @@ namespace GxPress.Service.Implement.AdminVerify
|
|
|
adminVerifyDto.IsDelete = "";
|
|
|
//获取部门
|
|
|
adminVerifyDto.Remark = department.Name + "-" + user.Name;
|
|
|
+ adminVerifyDto.Remark = request.Remark;
|
|
|
//await _adminVerifyRepository.InsertAsync(adminVerifyDto);
|
|
|
adminVerifys.Add(adminVerifyDto);
|
|
|
}
|