修改BUG:拒绝用户是级联删除授权表中的用户ID
This commit is contained in:
parent
1e2653e4e8
commit
eace4178bd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue