INSERT INTO authorization_info ( ID, CUSTOMER_ID, AUTHORIZER_APPID, AUTHORIZER_ACCESS_TOKEN, EXPIRES_IN, AUTHORIZER_REFRESH_TOKEN, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME ) VALUES ( REPLACE ( UUID(), '-', '' ), #{customerId}, #{authorizerAppid}, #{authorizerAccessToken}, #{expiresIn}, #{authorizerRefreshToken}, #{delFlag}, #{createdBy}, NOW(), #{updatedBy}, NOW() ) update authorization_info set del_flag = 0 where customer_id = #{customerId}