问题:传入Long类型参数时 写成<if test="belongItemId != null and belongItemId != 'null' ">...</if>
报错Error querying database. Cause: java.lang.NumberFormatException: For input string “null”
修改为<if test="belongItemId != null and belongItemId != 0 ">...</if>
如果传入String类型
<if test="belongItemId != null and belongItemId != ‘null’ and belongItemId != ' ' ">...</if>