SELECT customer_bank_id, settle_account_id, customer_id, name, cert_id, bank_name, bank_num, phone, dept_id,
adapay_member_id, settle_account, create_by, create_time, update_by, update_time, remark
FROM customer_bank
UPDATE customer_bank
customer_id = #{customerId},
`name` = #{name},
bank_name = #{bankName},
bank_num = #{bankNum},
phone = #{phone},
dept_id = #{deptId},
settle_account = #{settleAccount},
remark = #{remark},
update_by = #{updateBy},
update_time = sysdate()
WHERE customer_bank_id = #{customerBankId}
INSERT INTO customer_bank( settle_account_id,
customer_id,
name,
cert_id,
bank_name,
bank_num,
phone,
dept_id,
adapay_member_id,
settle_account,
create_by,
remark,
create_time
)VALUES( #{settleAccountId},
#{customerId},
#{name},
#{certId},
#{bankName},
#{bankNum},
#{phone},
#{deptId},
#{adapayMemberId},
#{settleAccount},
#{createBy},
#{remark},
sysdate()
)
DELETE FROM customer_bank WHERE customer_bank_id IN
#{customerBankId}
DELETE
FROM customer_bank
WHERE customer_bank_id = #{customerBankId}
UPDATE customer_bank
phone = #{phone},
bank_num = #{bankNum},
settle_account_id = #{settleAccountId},
update_time = NOW()
WHERE adapay_member_id = #{adapayMemberId}