mybatis if test 不为空字符串或null

<sql id="public_content"> <if test="productId != null and productId !=''" > and a.product_id = #{productId,jdbcType=VARCHAR} </if> <if test="productDefinId != null" > a
相关文章
相关标签/搜索