<?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="jnpf.authority.mapper.FtbPermissionRoleMenuMapper">

    <select id="queryFuncCodingsByRoleMenuIds" resultType="java.lang.String">
        SELECT
          m.F_FuncCoding
        FROM
          ftb_permission_role_menu_relation r
          INNER JOIN ftb_permission_function_menu m ON r.F_RoleMenuConfigId = m.F_Id
        WHERE
          r.F_RoleMenuId IN
          <foreach collection="roleMenuIds" item="roleMenuId" open="(" close=")" separator=",">
              #{roleMenuId}
          </foreach>
          AND r.F_EnableMark = 0
          AND m.F_EnableMark = 0
    </select>

</mapper>
