UPDATE crms_customer SET del_or_not = 1 WHERE id IN #{id} INSERT INTO crms_customer (code,type,manager,name,addr,phone,del_or_not,status,create_time,motify_time) VALUES (#{code},#{type},#{manager},#{name},#{addr},#{phone},0,0,#{createTime},#{motifyTime}) UPDATE crms_customer SET manager=#{manager},name=#{name},addr=#{addr},phone=#{phone},motify_time=#{motifyTime} WHERE id = #{id}