select contactid, enterprise_code, enterprise_name, customer_name, customer_position, customer_birthday, office_telephone, home_phone, cell_phone, customer_fax, standby_telephone_one, standby_telephone_two, common_email, alternate_email, customer_remarks, first_add_time, update_info_time from sys_contacts
insert into sys_contacts
enterprise_code,
enterprise_name,
customer_name,
customer_position,
customer_birthday,
office_telephone,
home_phone,
cell_phone,
customer_fax,
standby_telephone_one,
standby_telephone_two,
common_email,
alternate_email,
customer_remarks,
first_add_time,
#{enterpriseCode},
#{enterpriseName},
#{customerName},
#{customerPosition},
#{customerBirthday},
#{officeTelephone},
#{homePhone},
#{cellPhone},
#{customerFax},
#{standbyTelephoneOne},
#{standbyTelephoneTwo},
#{commonEmail},
#{alternateEmail},
#{customerRemarks},
NOW(),
update sys_contacts
enterprise_code = #{enterpriseCode},
enterprise_name = #{enterpriseName},
customer_name = #{customerName},
customer_position = #{customerPosition},
customer_birthday = #{customerBirthday},
office_telephone = #{officeTelephone},
home_phone = #{homePhone},
cell_phone = #{cellPhone},
customer_fax = #{customerFax},
standby_telephone_one = #{standbyTelephoneOne},
standby_telephone_two = #{standbyTelephoneTwo},
common_email = #{commonEmail},
alternate_email = #{alternateEmail},
customer_remarks = #{customerRemarks},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
where contactid = #{contactid}
delete from sys_contacts where contactid = #{contactid}
delete from sys_contacts where contactid in
#{contactid}