From aba38e369fa05fc6f1eac0a56a65e9b3e2a41ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BC=82=E9=80=94?= <541338+piaotu@user.noreply.gitee.com> Date: Tue, 24 Sep 2024 03:57:01 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85KBase=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84insertBatch=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 漂途 <541338+piaotu@user.noreply.gitee.com> --- .../kingbase/mapper/ServerNodeMapper.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/snail-job-datasource/snail-job-kingbase-datasource/src/main/resources/kingbase/mapper/ServerNodeMapper.xml b/snail-job-datasource/snail-job-kingbase-datasource/src/main/resources/kingbase/mapper/ServerNodeMapper.xml index af84c9de5..eccc2ed82 100644 --- a/snail-job-datasource/snail-job-kingbase-datasource/src/main/resources/kingbase/mapper/ServerNodeMapper.xml +++ b/snail-job-datasource/snail-job-kingbase-datasource/src/main/resources/kingbase/mapper/ServerNodeMapper.xml @@ -1,6 +1,24 @@ + + INSERT INTO sj_server_node (namespace_id, group_name, host_id, host_ip, host_port, + expire_at, node_type, ext_attrs, create_dt) + VALUES + + ( + #{item.namespaceId,jdbcType=VARCHAR}, + #{item.groupName,jdbcType=VARCHAR}, + #{item.hostId,jdbcType=VARCHAR}, + #{item.hostIp,jdbcType=VARCHAR}, + #{item.hostPort,jdbcType=INTEGER}, + #{item.expireAt,jdbcType=TIMESTAMP}, + #{item.nodeType,jdbcType=TINYINT}, + #{item.extAttrs,jdbcType=VARCHAR}, + #{item.createDt,jdbcType=TIMESTAMP} + ) + + UPDATE sj_server_node AS rt