You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.4 KiB
32 lines
1.4 KiB
<?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="cn.jyjz.xiaoyao.admin.dataDao.SFrontmenuTDao">
|
|
<resultMap id="BaseResultMap" type="cn.jyjz.xiaoyao.admin.dataobject.SFrontmenuT">
|
|
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
<result column="parentId" jdbcType="INTEGER" property="parentId" />
|
|
<result column="resKey" jdbcType="VARCHAR" property="resKey" />
|
|
<result column="resUrl" jdbcType="VARCHAR" property="resKey" />
|
|
<result column="level" jdbcType="INTEGER" property="level" />
|
|
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
|
<result column="orderNum" jdbcType="INTEGER" property="orderNum" />
|
|
<result column="ishide" jdbcType="INTEGER" property="ishide" />
|
|
<result column="description" jdbcType="VARCHAR" property="description" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
id, `name`, parentId, resKey, resUrl, `level`, icon, orderNum, ishide, description
|
|
</sql>
|
|
|
|
<select id="queryUserMenuById" resultType="cn.jyjz.xiaoyao.admin.dataobject.SFrontmenuT">
|
|
SELECT
|
|
T3.*
|
|
FROM
|
|
s_user_frontmenu_t T1
|
|
LEFT JOIN s_user_t T2 ON T1.userId = T2.ID
|
|
LEFT JOIN s_frontmenu_t T3 on T3.id = T1.menuId
|
|
WHERE
|
|
T2.LOGINNAME = #{loginname}
|
|
ORDER BY T3.orderNum asc
|
|
</select>
|
|
</mapper> |