特定のパラメーターがクエリパラメーターマップに含まれているかどうかをテストする方法は mybatis にありますか?
私はこのようなものを探しています:
<select id="selectByKey" resultMap="MyObjectMap" parameterType="map">
select obj.* from obj where obj.id=#{id:VARCHAR}
<!-- I'm looking for a method like that below -->
<if test="parameterExists('forUpdate')">
<if test="forUpdate == 1">
for update
</if>
</if>
</select>