From ed7ef6771eb06f1232db36ab08c848ab86640ba8 Mon Sep 17 00:00:00 2001 From: moec42frf <3378620026@qq.com> Date: Sun, 30 Apr 2023 09:31:03 +0800 Subject: [PATCH] ADD file via upload --- .../main/java/org/sang/mapper/UserMapper.xml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 blogserver/src/main/java/org/sang/mapper/UserMapper.xml diff --git a/blogserver/src/main/java/org/sang/mapper/UserMapper.xml b/blogserver/src/main/java/org/sang/mapper/UserMapper.xml new file mode 100644 index 0000000..57c2246 --- /dev/null +++ b/blogserver/src/main/java/org/sang/mapper/UserMapper.xml @@ -0,0 +1,63 @@ + + + + + + INSERT INTO user set username=#{username},password=#{password},nickname=#{nickname} + + + UPDATE user set email=#{email} WHERE id=#{id} + + + + + + + + + + + + + + + + + + + + UPDATE user set enabled=#{enabled} WHERE id=#{uid} + + + DELETE FROM user WHERE id=#{id} + + + DELETE FROM roles_user WHERE uid=#{id} + + + INSERT INTO roles_user(rid,uid) VALUES + + (#{rid},#{id}) + + + \ No newline at end of file