select thisTab.id, thisTab.customer_id, thisTab.customer_name, thisTab.account_no, thisTab.account_name, thisTab.bank_name, thisTab.branch_name, thisTab.account_type, thisTab.currency, thisTab.status, thisTab.account_number, thisTab.opening_date, thisTab.bank_code, thisTab.remark, thisTab.is_default, thisTab.create_by, thisTab.update_by, thisTab.create_time, thisTab.update_time, thisTab.deleted from bank_account_config AS thisTab select count(0) from bank_account_config as thisTab and thisTab.customer_id = #{customerId} and thisTab.customer_name like concat('%', #{customerName}, '%') and thisTab.account_no = #{accountNo} and thisTab.account_name like concat('%', #{accountName}, '%') and thisTab.bank_name like concat('%', #{bankName}, '%') and thisTab.branch_name like concat('%', #{branchName}, '%') and thisTab.account_type = #{accountType} and thisTab.currency = #{currency} and thisTab.status = #{status} and thisTab.account_number = #{accountNumber} and thisTab.opening_date = #{openingDate} and thisTab.bank_code = #{bankCode} and thisTab.is_default = #{isDefault} and thisTab.deleted = #{deleted} insert into bank_account_config customer_id, customer_name, account_no, account_name, bank_name, branch_name, account_type, currency, status, account_number, opening_date, bank_code, remark, is_default, create_by, update_by, create_time, update_time, deleted, #{customerId}, #{customerName}, #{accountNo}, #{accountName}, #{bankName}, #{branchName}, #{accountType}, #{currency}, #{status}, #{accountNumber}, #{openingDate}, #{bankCode}, #{remark}, #{isDefault}, #{createBy}, #{updateBy}, #{createTime}, #{updateTime}, #{deleted}, insert into bank_account_config id,customer_id,customer_name,account_no,account_name,bank_name,branch_name,account_type,currency,status,account_number,opening_date,bank_code,remark,is_default,create_by,update_by,create_time,update_time,deleted, #{item.id},#{item.customerId},#{item.customerName},#{item.accountNo},#{item.accountName},#{item.bankName},#{item.branchName},#{item.accountType},#{item.currency},#{item.status},#{item.accountNumber},#{item.openingDate},#{item.bankCode},#{item.remark},#{item.isDefault},#{item.createBy},#{item.updateBy},#{item.createTime},#{item.updateTime},#{item.deleted}, update bank_account_config customer_id = #{customerId}, customer_name = #{customerName}, account_no = #{accountNo}, account_name = #{accountName}, bank_name = #{bankName}, branch_name = #{branchName}, account_type = #{accountType}, currency = #{currency}, status = #{status}, account_number = #{accountNumber}, opening_date = #{openingDate}, bank_code = #{bankCode}, remark = #{remark}, is_default = #{isDefault}, create_by = #{createBy}, update_by = #{updateBy}, create_time = #{createTime}, update_time = #{updateTime}, deleted = #{deleted}, where id = #{id} update bank_account_config customer_id = #{item.customerId}, customer_name = #{item.customerName}, account_no = #{item.accountNo}, account_name = #{item.accountName}, bank_name = #{item.bankName}, branch_name = #{item.branchName}, account_type = #{item.accountType}, currency = #{item.currency}, status = #{item.status}, account_number = #{item.accountNumber}, opening_date = #{item.openingDate}, bank_code = #{item.bankCode}, remark = #{item.remark}, is_default = #{item.isDefault}, create_by = #{item.createBy}, update_by = #{item.updateBy}, create_time = #{item.createTime}, update_time = #{item.updateTime}, deleted = #{item.deleted}, where id = #{item.id} delete from bank_account_config where id = #{id} delete from bank_account_config where id in #{id}