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.
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
|
|
<mapper namespace="com.daqing.financial.hrms.dao.RolePermissionDao">
|
|
|
|
|
|
|
|
<!-- 可根据自己的需求,是否要使用 -->
|
|
|
|
<resultMap type="com.daqing.framework.domain.hrms.RolePermissionEntity" id="rolePermissionMap">
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="roleId" column="role_id"/>
|
|
|
|
<result property="permissionId" column="permission_id"/>
|
|
|
|
</resultMap>
|
|
|
|
<select id="queryPermissionsByRoleIds" resultType="com.daqing.framework.domain.hrms.RolePermissionEntity">
|
|
|
|
select permission_id from hrms_role_permission
|
|
|
|
where role_id in
|
|
|
|
<foreach collection="ids" open="(" separator="," close=")" item="id">
|
|
|
|
#{id}
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|