こんな感じ。
<select id="selectWithoutBLOBs" resultMap="ibatorgenerated_BaseResultMap" parameterClass="xxx.Xxx" > select id, xxx, xxx from xxx <dynamic prepend="where"> <isNotNull prepend="and" property="xxx"> xxx = #xxx:INTEGER# </isNotNull> <isNotNull prepend="and" property="xxx"> xxx = #xxx:INTEGER# </isNotNull> </dynamic> </select>