赫艾后端
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
872 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.heai.modules.sys.dao.FavoriteFunctionsDao">
<select id="userMenuFavoriteList" resultType="com.heai.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>