null和空字符串
<if test="orderNum != null and orderNum != ''"> order_num = #{orderNum}</if>
字符串、数字
<if test='type == "3"'> and status in (3,4,5)</if>
<if test='type == "2"'> and status=2</if>
null和空字符串
<if test="orderNum != null and orderNum != ''"> order_num = #{orderNum}</if>
字符串、数字
<if test='type == "3"'> and status in (3,4,5)</if>
<if test='type == "2"'> and status=2</if>