@@ -199,4 +199,12 @@ public class BaseController
{
return getLoginUser().getUsername();
}
+
+ /**
+ * 获取用户ID
+ */
+ public String getUserId()
+ {
+ return getLoginUser().getUserId();
+ }
@@ -131,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
<include refid="selectUserVo"/>
- where u.id = #{userId}
+ where u.id = #{id}
</select>
<select id="checkUserNameUnique" parameterType="String" resultMap="SysUserResult">