From 2d024e19ca10aed7b7cd556a1320c6319abfa6b7 Mon Sep 17 00:00:00 2001
From: zqy <2522236926@qq.com>
Date: 星期二, 19 八月 2025 20:52:40 +0800
Subject: [PATCH] 用户修改个人信息时 报错

---
 ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
index dd72689..46def22 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml
@@ -9,6 +9,10 @@
 		<result property="roleId"     column="role_id"      />
 	</resultMap>
 
+	<select id="selectUserById" resultType="SysUserRole" >
+		select * from sys_user_role where user_id=#{userId}
+	</select>
+
 	<delete id="deleteUserRoleByUserId" parameterType="Long">
 		delete from sys_user_role where user_id=#{userId}
 	</delete>

--
Gitblit v1.9.1