XjrMenuDeptRelationMapper.xml 851 B

123456789101112131415161718
  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="getPage" resultType="com.xjrsoft.module.system.vo.XjrMenuDeptRelationPageVo">
  7. SELECT *, t1.name as menuName, t2.name as deptName FROM xjr_menu_dept_relation t
  8. LEFT JOIN xjr_menu t1 ON t1.id = t.menu_id
  9. LEFT JOIN xjr_department t2 on t2.id = t.dept_id
  10. WHERE t.delete_mark = 0
  11. <if test="list != null and list.size() > 0">
  12. AND dept_id IN
  13. <foreach item="deptId" index="index" collection="list" open="(" separator="," close=")">
  14. #{deptId}
  15. </foreach>
  16. </if>
  17. </select>
  18. </mapper>