RoleDao.xml 544 B

12345678910111213
  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.role.dao.RoleDAO">
  4. <!-- 查询用户 在该租户下的 角色 集合 -->
  5. <select id="getByUserIdAndTenantId" resultType="com.inkasso.factoring.system.role.entity.RoleDO">
  6. select
  7. a.*
  8. from kfb_sys_role a
  9. join kfb_sys_user_role b on a.id = b.role_id
  10. where b.user_id = #{userId} and b.tenant_id = #{tenantId}
  11. </select>
  12. </mapper>