记录,mabaties问题(一)

数字自能判断是否为null或者等于几

id是long或者integer类型

<if test="     id ! = null     ">

</if>

<if test="     id ! = null  and id==1    ">

</if>


name是string类型

<if test="     name ! = null  and name!=' '    ">

</if>



猜你喜欢

转载自blog.csdn.net/u010138825/article/details/51481336