赫艾后端
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.

22 lines
872 B

5 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.heai.modules.sys.dao.FavoriteFunctionsDao">
  4. <select id="userMenuFavoriteList" resultType="com.heai.modules.sys.entity.SysMenuEntity">
  5. SELECT
  6. sm.icon,
  7. sm.item_type,
  8. sm.menu_id,
  9. ISNULL(slm.language_value,sm.name) as name,
  10. sm.order_num,
  11. sm.parent_id,
  12. sm.url,
  13. sm.perms,
  14. sm.type
  15. FROM
  16. favorite_functions ff
  17. LEFT JOIN sys_menu sm ON (ff.function_id = sm.menu_id )
  18. LEFT JOIN sys_object_language_menu slm ON (slm.menu_id = sm.menu_id and slm.language_code = #{languageCode})
  19. WHERE ff.user_id = #{userId}
  20. </select>
  21. </mapper>