INSERT INTO customer_contact
(
customerId, contacts,
mobile, tel, email,
comments
)
values
(
#{customerId},#{contacts},
#{mobile},#{tel},#{email},
#{comments}
)
UPDATE customer_contact
contacts=#{contacts},
mobile=#{mobile},
tel=#{tel},
email=#{email},
comments=#{comments},
WHERE customerId=#{customerId}
delete from customer_contact where customerId = #{customerId}
delete from customer_contact where customerId = #{customerId}