Mybatis Integer類型,值爲0被認爲是空字符串的解決辦法

mybatis寫update時,正常是set了值纔會進行update操做,咱們通常是這樣寫。bash <if test="sampleBatchNo != null and sampleBatchNo != ''" > SAMPLE_BATCH_NO = #{sampleBatchNo,jdbcType=VARCHAR}, </if> 1 2 3 1 2 3 若是不空null而且不是空字符串纔去修
相關文章
相關標籤/搜索