mybatis 单个参数

参数是string

写法是 #{_parameter}
<select id="findByAccountType " parameterType="string" resultType="account">
  select *
  form account
  <where>
    <if test ="_parameter!= null">
      type=#{_parameter}
    </if>
  </where>
</select>

 

posted @ 2018-04-09 16:13  lyon♪♫  阅读(155)  评论(0编辑  收藏  举报