You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.imitate.common.shiro.mapper.SysUserMapper" >
- <resultMap id="BaseResultMap" type="com.imitate.common.shiro.pojo.SysUser" >
- <id column="id" property="id" jdbcType="BIGINT" />
- <result column="username" property="username" jdbcType="VARCHAR" />
- <result column="password" property="password" jdbcType="VARCHAR" />
- <result column="mobile" property="mobile" jdbcType="VARCHAR" />
- <result column="status" property="status" jdbcType="TINYINT" />
- <result column="user_headimg" property="userHeadimg" jdbcType="VARCHAR"/>
- <result property="createTime" jdbcType="TIMESTAMP" column="create_time"/>
- <result property="updateTime" jdbcType="TIMESTAMP" column="update_time"/>
- <result property="wxExtra" jdbcType="VARCHAR" column="wx_extra"/>
- <result property="wxOpenid" jdbcType="VARCHAR" column="wx_openid"/>
- <result property="admin" jdbcType="TINYINT" column="admin"/>
- <result property="nickName" jdbcType="TINYINT" column="nick_name"/>
-
- <result property="lastLoginIp" column="last_login_ip" jdbcType="VARCHAR"/>
- <result property="lastLoginOn" column="last_login_on" jdbcType="TIMESTAMP"/>
- <result property="sex" column="sex" jdbcType="TINYINT"/>
- <result property="province" column="province" jdbcType="VARCHAR" />
- <result property="city" column="city" jdbcType="VARCHAR"/>
- <result property="subscribeTime" column="subscribe_time" jdbcType="TIMESTAMP" />
-
- </resultMap>
-
-
-
- <!-- 查询用户的所有权限 -->
- <select id="queryAllPerms" resultType="String">
- SELECT DISTINCT m.perms FROM edu_sys_user_role ur
- LEFT JOIN edu_sys_role_menu rm ON ur.role_id = rm.role_id
- LEFT JOIN edu_sys_menu m ON rm.menu_id = m.id
- WHERE
- ur.user_id = #{userId}
- </select>
-
-
-
- </mapper>
|