mybatis写update时,正常是set了值才会进行update操作,我们一般是这样写: <if test="sampleBatchNo != null and sampleBatchNo != ''">