select thisTab.id, thisTab.supplier_id, thisTab.supplier_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_supplier_config AS thisTab select count(0) from bank_supplier_config as thisTab and thisTab.supplier_id = #{supplierId} and thisTab.supplier_name like concat('%', #{supplierName}, '%') 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_supplier_config supplier_id, supplier_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, #{supplierId}, #{supplierName}, #{accountNo}, #{accountName}, #{bankName}, #{branchName}, #{accountType}, #{currency}, #{status}, #{accountNumber}, #{openingDate}, #{bankCode}, #{remark}, #{isDefault}, #{createBy}, #{updateBy}, #{createTime}, #{updateTime}, #{deleted}, insert into bank_supplier_config id,supplier_id,supplier_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.supplierId},#{item.supplierName},#{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_supplier_config supplier_id = #{supplierId}, supplier_name = #{supplierName}, 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_supplier_config supplier_id = #{item.supplierId}, supplier_name = #{item.supplierName}, 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_supplier_config where id = #{id} delete from bank_supplier_config where id in #{id}