mybatis if test判断字符串不为null或者空

分类:计算机 | 数据库 | Mybatis | 综合 1200
更新:2020-12-30 00:24:43
编辑
<if test="name !=null and name !=''">
     AND t.name=#{name,jdbcType=VARCHAR }
</if>