mybatis if test不为空字符或null

原文链接: https://www.jianshu.com/p/bdcafc9624c4
<if test="extraSql != null and extraSql !=''">
   AND ${extraSql}
</if>

猜你喜欢

转载自blog.csdn.net/CHS007chs/article/details/102666563