XjrMenuDeptRelationMapper.xml 626 B

1234567891011
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.xjrsoft.module.system.mapper.XjrMenuDeptRelationMapper">
  6. <select id="getMenuDept" resultType="com.xjrsoft.module.system.vo.XjrMentDeptGroupVo">
  7. SELECT t2.menu_id,GROUP_CONCAT(DISTINCT(t1.name)) as dept_names,GROUP_CONCAT(DISTINCT(t1.id)) as dept_ids FROM xjr_department t1
  8. INNER JOIN xjr_menu_dept_relation t2 ON t1.id = t2.dept_id
  9. WHERE t1.delete_mark = 0 GROUP BY t2.menu_id
  10. </select>
  11. </mapper>