UPDATE sup_cert name=#{name}, customerId=#{customerId}, filePath=#{filePath}, remark=#{remark}, createTime=#{createTime}, updateTime=#{updateTime}, vailDate=#{vailDate}, expireDate=#{expireDate}, `type`=#{type}, `manufacturerIdFk`=#{manufacturerIdFk}, `productIdFk`=#{productIdFk}, `code`=#{code}, `auditStatus`=#{auditStatus}, `auditComment`=#{auditComment}, `status`=#{status}, WHERE id = #{id} UPDATE sup_cert set customerId = #{newId} ,auditStatus = #{auditStatus} WHERE customerId = #{oldId} UPDATE sup_cert set customerId = #{newCustomerId} , manufacturerIdFk = #{newManufacturerIdFk} WHERE customerId = #{oldCustomerId} and manufacturerIdFk = #{oldManufacturerIdFk} UPDATE sup_cert set customerId = #{newCustomerId} , manufacturerIdFk = #{newManufacturerIdFk} , productIdFk = #{newProductIdFk} WHERE customerId = #{oldCustomerId} and manufacturerIdFk = #{oldManufacturerIdFk} and productIdFk = #{oldProductIdFk} INSERT INTO sup_cert( `name`, customerId, filePath, remark, createTime, updateTime , vailDate, expireDate, `type`, manufacturerIdFk, productIdFk, code, auditStatus , auditComment, status) values (#{name}, #{customerId}, #{filePath}, #{remark}, #{createTime}, #{updateTime}, #{vailDate}, #{expireDate}, #{type}, #{manufacturerIdFk}, #{productIdFk}, #{code}, #{auditStatus}, #{auditComment}, #{status}) DELETE FROM sup_cert WHERE id = #{id} DELETE FROM sup_cert and customerId = #{customerId} and manufacturerIdFk = #{manufacturerIdFk} and productIdFk = #{productIdFk}