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而且不是空字符串才去修
相关文章
相关标签/搜索