select chains_code, creator, customers_name, org_id, id_type, id_number, org_legalId_number, org_legal_name, is_authentication, receive_url_mobile_no from customers_ext
insert into customers_ext
chains_code,
creator,
customers_name,
org_id,
id_type,
id_number,
org_legalId_number,
org_legal_name,
is_authentication,
receive_url_mobile_no,
#{chainsCode},
#{creator},
#{customersName},
#{orgId},
#{idType},
#{idNumber},
#{orgLegalidNumber},
#{orgLegalName},
#{isAuthentication},
#{receiveUrlMobileNo},
update customers_ext
creator = #{creator},
customers_name = #{customersName},
org_id = #{orgId},
id_type = #{idType},
id_number = #{idNumber},
org_legalId_number = #{orgLegalidNumber},
org_legal_name = #{orgLegalName},
is_authentication = #{isAuthentication},
receive_url_mobile_no = #{receiveUrlMobileNo},
where chains_code = #{chainsCode}
update customers_ext set is_authentication = #{isAuthentication}
where org_id = #{accountId}
delete from customers_ext where chains_code = #{chainsCode}
delete from customers_ext where chains_code in
#{chainsCode}