Skip to content

Commit bfef36a

Browse files
committed
修复用户软删除操作时,删除用户员工附表的问题
1 parent 3add0d6 commit bfef36a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/modules/admin/ZhonTai.Admin/Services/User/UserService.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,9 +1032,6 @@ public virtual async Task SoftDeleteAsync(long id)
10321032
throw ResultOutput.Exception(_adminLocalizer["平台管理员禁止删除"]);
10331033
}
10341034

1035-
//await _userRoleRep.DeleteAsync(a => a.UserId == id);
1036-
//await _userOrgRep.DeleteAsync(a => a.UserId == id);
1037-
await _userStaffRep.SoftDeleteAsync(id);
10381035
await _userRep.SoftDeleteAsync(id);
10391036

10401037
await Cache.DelByPatternAsync(CacheKeys.GetDataPermissionPattern(id));
@@ -1056,9 +1053,6 @@ public virtual async Task BatchSoftDeleteAsync(long[] ids)
10561053
throw ResultOutput.Exception(_adminLocalizer["平台管理员禁止删除"]);
10571054
}
10581055

1059-
//await _userRoleRep.DeleteAsync(a => ids.Contains(a.UserId));
1060-
//await _userOrgRep.DeleteAsync(a => ids.Contains(a.UserId));
1061-
await _userStaffRep.SoftDeleteAsync(ids);
10621056
await _userRep.SoftDeleteAsync(ids);
10631057

10641058
foreach (var userId in ids)

0 commit comments

Comments
 (0)