id, group_name, context_path, host_id, host_ip, host_port, expire_at, node_type,create_dt,update_dt insert into server_node (id, group_name, host_id, host_ip, host_port, expire_at, node_type, context_path, create_dt) values (#{id,jdbcType=BIGINT}, #{groupName,jdbcType=VARCHAR}, #{hostId,jdbcType=VARCHAR}, #{hostIp,jdbcType=VARCHAR}, #{hostPort,jdbcType=INTEGER}, #{expireAt,jdbcType=TIMESTAMP}, #{nodeType,jdbcType=TINYINT}, #{contextPath,jdbcType=VARCHAR}, #{createDt,jdbcType=TIMESTAMP} ) ON DUPLICATE KEY UPDATE host_id = values(`host_id`), host_ip = values(`host_ip`), host_port = values(`host_port`), expire_at = values(`expire_at`), node_type = values(`node_type`), create_dt = values(`create_dt`), context_path = values(`context_path`) delete from server_node where expire_at <= #{endTime,jdbcType=TIMESTAMP}