File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
src/modules/admin/ZhonTai.Admin/Services/User Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -1032,9 +1032,6 @@ public virtual async Task SoftDeleteAsync(long id)
1032
1032
throw ResultOutput . Exception ( _adminLocalizer [ "平台管理员禁止删除" ] ) ;
1033
1033
}
1034
1034
1035
- //await _userRoleRep.DeleteAsync(a => a.UserId == id);
1036
- //await _userOrgRep.DeleteAsync(a => a.UserId == id);
1037
- await _userStaffRep . SoftDeleteAsync ( id ) ;
1038
1035
await _userRep . SoftDeleteAsync ( id ) ;
1039
1036
1040
1037
await Cache . DelByPatternAsync ( CacheKeys . GetDataPermissionPattern ( id ) ) ;
@@ -1056,9 +1053,6 @@ public virtual async Task BatchSoftDeleteAsync(long[] ids)
1056
1053
throw ResultOutput . Exception ( _adminLocalizer [ "平台管理员禁止删除" ] ) ;
1057
1054
}
1058
1055
1059
- //await _userRoleRep.DeleteAsync(a => ids.Contains(a.UserId));
1060
- //await _userOrgRep.DeleteAsync(a => ids.Contains(a.UserId));
1061
- await _userStaffRep . SoftDeleteAsync ( ids ) ;
1062
1056
await _userRep . SoftDeleteAsync ( ids ) ;
1063
1057
1064
1058
foreach ( var userId in ids )
You can’t perform that action at this time.
0 commit comments