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.
 
 
 
 
 
 

23 lines
881 B

<?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.gaotao.modules.sys.dao.FavoriteFunctionsDao">
<select id="userMenuFavoriteList" resultType="com.gaotao.modules.sys.entity.SysMenuEntity">
SELECT
sm.icon,
sm.item_type,
sm.menu_id,
ISNULL( slm.language_value, sm.name ) AS name,
sm.order_num,
sm.parent_id,
sm.url,
sm.perms,
sm.type
FROM
favorite_functions ff
LEFT JOIN sys_menu sm ON ( ff.function_id = sm.menu_id )
LEFT JOIN sys_object_language_menu slm ON ( slm.menu_id = sm.menu_id AND slm.language_code = #{languageCode} )
WHERE ff.user_id = #{userId}
</select>
</mapper>