select
<include refid="Base_Column_List"/>
from sys_permission
where id = -sharp{id,jdbcType=INTEGER}
</select>
</mapper>
if you change dao to
List < SysRole > getRoleWithPermission (Integer id);
, three records are returned, and each role corresponds to a permission.