PermissionDao.xml 610 B

123456789101112131415161718
  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.inkasso.factoring.system.permission.dao.PermissionDAO">
  4. <select id="getByResourceIds" resultType="com.inkasso.factoring.system.permission.model.dto.PermissionDTO">
  5. select
  6. a.*
  7. from kfb_sys_permission a
  8. JOIN kfb_sys_resource_permission b on a.id = b.permission_id
  9. where b.resource_id in (
  10. <foreach collection="list" item="obj" separator=",">
  11. #{obj}
  12. </foreach>
  13. )
  14. </select>
  15. </mapper>