id, channel_code_pattern, app_id, app_id_out, dist_url, public_key, create_time, update_time, enable delete from unionlogin_relay where id = #{id,jdbcType=INTEGER} SELECT LAST_INSERT_ID() insert into unionlogin_relay (channel_code_pattern, app_id, app_id_out, dist_url, public_key, create_time, update_time, enable) values (#{channelCodePattern,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR}, #{appIdOut,jdbcType=VARCHAR}, #{distUrl,jdbcType=VARCHAR}, #{publicKey,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{enable}) SELECT LAST_INSERT_ID() insert into unionlogin_relay channel_code_pattern, app_id, app_id_out, dist_url, public_key, create_time, update_time, enable, #{channelCodePattern,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR}, #{appIdOut,jdbcType=VARCHAR}, #{distUrl,jdbcType=VARCHAR}, #{publicKey,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{enable}, update unionlogin_relay channel_code_pattern = #{channelCodePattern,jdbcType=VARCHAR}, app_id = #{appId,jdbcType=VARCHAR}, app_id_out = #{appIdOut,jdbcType=VARCHAR}, dist_url = #{distUrl,jdbcType=VARCHAR}, public_key = #{publicKey,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, enable = #{enable}, where id = #{id,jdbcType=INTEGER} update unionlogin_relay set channel_code_pattern = #{channelCodePattern,jdbcType=VARCHAR}, app_id = #{appId,jdbcType=VARCHAR}, app_id_out = #{appIdOut,jdbcType=VARCHAR}, dist_url = #{distUrl,jdbcType=VARCHAR}, public_key = #{publicKey,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, enable = #{enable} where id = #{id,jdbcType=INTEGER}