select id, pay_usdt_num, receive_usdt_num, tron_net_type, version, encryption_algorithm, password_kdf, iterations, encrypted_mnemonic, mnemonic_nonce, encrypted_dek, dek_nonce, key_salt, password_salt, password_hash, rotated_at, trx_num, token_address from usdt_config update usdt_config set version = #{config.version}, encryption_algorithm = #{config.encryptionAlgorithm}, password_kdf = #{config.passwordKdf}, iterations = #{config.iterations}, encrypted_dek = #{config.encryptedDek}, dek_nonce = #{config.dekNonce}, key_salt = #{config.keySalt}, password_salt = #{config.passwordSalt}, password_hash = #{config.passwordHash}, rotated_at = #{config.rotatedAt} where id = #{config.id} and version = #{oldVersion} insert into usdt_config pay_usdt_num, receive_usdt_num, tron_net_type, version, encryption_algorithm, password_kdf, iterations, encrypted_mnemonic, mnemonic_nonce, encrypted_dek, dek_nonce, key_salt, password_salt, password_hash, rotated_at, trx_num, token_address, #{payUsdtNum}, #{receiveUsdtNum}, #{tronNetType}, #{version}, #{encryptionAlgorithm}, #{passwordKdf}, #{iterations}, #{encryptedMnemonic}, #{mnemonicNonce}, #{encryptedDek}, #{dekNonce}, #{keySalt}, #{passwordSalt}, #{passwordHash}, #{rotatedAt}, #{trxNum}, #{tokenAddress}, update usdt_config pay_usdt_num = #{payUsdtNum}, receive_usdt_num = #{receiveUsdtNum}, tron_net_type = #{tronNetType}, version = #{version}, encryption_algorithm = #{encryptionAlgorithm}, password_kdf = #{passwordKdf}, iterations = #{iterations}, encrypted_mnemonic = #{encryptedMnemonic}, mnemonic_nonce = #{mnemonicNonce}, encrypted_dek = #{encryptedDek}, dek_nonce = #{dekNonce}, key_salt = #{keySalt}, password_salt = #{passwordSalt}, password_hash = #{passwordHash}, rotated_at = #{rotatedAt}, trx_num = #{trxNum}, token_address = #{tokenAddress}, where id = #{id} delete from usdt_config where id = #{id} delete from usdt_config where id in #{id}