INSERT INTO authorization_info ( ID, CUSTOMER_ID, AUTHORIZER_APPID, AUTHORIZER_ACCESS_TOKEN, EXPIRES_IN_TIME, AUTHORIZER_REFRESH_TOKEN, FUNC_INFO, CLIENT_TYPE, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME )
VALUES
(
REPLACE ( UUID(), '-', '' ),
#{customerId},
#{authorizerAppid},
#{authorizerAccessToken},
#{expiresInTime},
#{authorizerRefreshToken},
#{funcInfo},
#{clientType},
#{delFlag},
#{createdBy},
NOW(),
#{updatedBy},
NOW()
)
update authorization_info set del_flag = 1 where authorizer_appid = #{authAppId}
INSERT INTO authorization_info ( ID, AUTHORIZER_ACCESS_TOKEN, EXPIRES_IN_TIME, AUTHORIZER_REFRESH_TOKEN, AUTHORIZER_APPID, CUSTOMER_ID,CLIENT_TYPE, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME )
VALUES
(
REPLACE ( UUID(), '-', '' ),
#{authorizerAccessToken},
#{expiresInTime},
#{authorizerRefreshToken},
#{authAppid},
#{customerId},
#{clientType},
#{delFlag},
#{createdBy},
NOW(),
#{updatedBy},
NOW()
)
delete from authorization_info where customer_id = #{customerId} AND client_type = #{clientType}