SysEveMenuMapper.xml 810 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?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.skyeye.authority.dao.SysEveMenuDao">
	
	<select id="querySysMenuList" parameterType="java.util.Map" resultType="java.util.Map">
		SELECT
			a.id,
			a.menu_name menuName,
			a.menu_icon menuIcon,
			a.title_name titleName,
			a.menu_level menuLevel,
			a.menu_type menuType,
			a.menu_sys_type menuSysType,
			a.menu_parent_id parentId,
			a.menu_url menuUrl,
			CONVERT(a.create_time, char) createTime
		FROM
			sys_eve_menu a
			LEFT JOIN sys_eve_user b ON a.creater = a.id
		WHERE 1=1
		<if test="menuName != '' and menuName != null">
			a.menu_name like '%${menuName}%'
		</if>
		ORDER BY a.create_time DESC
	</select>
	
	
</mapper>