mybatis判断参数是否为空

mybatis判断参数是否为空

以参数名为str为例:

<if test="str != null and str != ''.toString()"></if>
<if test="@org.apache.commons.lang3.StringUtils@isNotBlank(str)"></if>
<if test="str != null and LENGTH(str)>0"></if>

猜你喜欢

转载自blog.csdn.net/qq_32332777/article/details/103362256