当前位置: 代码迷 >> SQL >> Mybatis动态SQL单调基础类型参数用if标签
  详细解决方案

Mybatis动态SQL单调基础类型参数用if标签

热度:102   发布时间:2016-05-05 11:58:28.0
Mybatis动态SQL单一基础类型参数用if标签
Mybatis动态SQL单一基础类型参数用if标签时,test中应该用 _parameter,如:
<select id="selectByName" resultMap="ResultMap" parameterType="java.lang.String" >    select * from table1    <if test="_parameter != null">        where _name = #{name}    </if></select>
  相关解决方案