<?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.yiboshi.science.dao.SystemMenuDAO">
<sql id="allColumns">
t.id as id, t.meun_name as meunName, t.actionurl as actionurl, t.window_para as windowPara, t.showindex as showindex, t.parent_id as parentId, t.created as created
</sql>
<select id="findByRoleId" resultType="com.yiboshi.science.param.dto.SystemMenuDTO">
SELECT distinct a.*
FROM system_menu a
left join system_menu_role b on a.id=b.menu_id
<where>
${ew.sqlSegment}
</where>
order by a.show_index
</select>
<select id="getListByPage" resultType="com.yiboshi.science.param.dto.SystemMenuDTO">
SELECT e.*
FROM system_menu e
<where>
${ew.sqlSegment}
</where>
ORDER BY e.id ASC
</select>
</mapper>
-
徐俊 authoredd3497d84