UPDATE epc_bill_info_{rule} set data_start =0 WHERE order_code = #{orderCode} and data_start = 2; UPDATE epc_bill_info_{rule} SET info = #{info}, data_start = #{dataStart} WHERE order_code = #{orderCode} INSERT INTO epc_bill_info_{rule} ( data_start ,order_code ,info ,info_last ) VALUES ( #{dataStart} ,#{orderCode} ,#{info} ,#{infoLast} )