- 第一种方法
<if test="userName != null && userName.trim().length !=0 " >
- 第二种方法
<if test="@org.apache.commons.StringUtils@isEmpty(userName)" >
<if test="userName != null && userName.trim().length !=0 " >
<if test="@org.apache.commons.StringUtils@isEmpty(userName)" >