id, group_name, context_path, host_id, host_ip, host_port, expire_at, node_type,create_dt,update_dt INSERT INTO server_node (group_name, host_id, host_ip, host_port, expire_at, node_type, ext_attrs, context_path, create_dt) VALUES (#{groupName}, #{hostId}, #{hostIp}, #{hostPort}, #{expireAt}, #{nodeType}, #{extAttrs}, #{contextPath}, #{createDt}) ON CONFLICT (host_id, host_ip) DO UPDATE SET group_name = EXCLUDED.group_name, host_id = EXCLUDED.host_id, host_ip = EXCLUDED.host_ip, host_port = EXCLUDED.host_port, expire_at = EXCLUDED.expire_at, node_type = EXCLUDED.node_type, ext_attrs = EXCLUDED.ext_attrs, context_path = EXCLUDED.context_path, create_dt = EXCLUDED.create_dt delete from server_node where expire_at <= #{endTime,jdbcType=TIMESTAMP}