update sys_supplier nature_supplier = #{natureSupplier}, contact = #{contact}, name = #{name}, phone = #{phone}, language = #{language}, certificate_type = #{certificateType}, headpir = #{headpir}, flag = #{flag}, certificate = #{certificate}, pass = #{pass}, where phone=#{phone} delete from sys_supplier where phone=#{phone} INSERT INTO sys_supplier (code,nature_supplier,contact,phone,language,certificate_type,certificate,headpir,jdrq,flag,captcha,invoice,name,offer_num,balance_of) VALUES(#{code},#{natureSupplier},#{contact},#{phone},#{language},#{certificateType},#{certificate},#{headpir},GETDATE(),0,#{captcha},#{invoice},#{name},0,0) update sys_supplier set captcha=#{captcha} where phone=#{phone} update sys_supplier set captcha=#{captcha} where code=#{code}