修改BUG:拒绝用户是级联删除授权表中的用户ID

This commit is contained in:
Argo-MacBookPro 2018-09-13 21:33:56 +08:00
parent 1e2653e4e8
commit eace4178bd
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ BEGIN
begin
begin tran
insert into RejectUsers (UserName, DisplayName, RegisterTime, RejectedBy, RejectedTime, RejectedReason) values (@userName, @displayName, @registerTime, @rejectedBy, GETDATE(), @rejectedReason)
delete from UserRole where UserId = @id
delete from users where ID = @id
commit tran
end