|
@@ -48,10 +48,11 @@
|
|
|
|
|
|
</select>
|
|
|
<select id="getKuaiShouTokenByAccountId" resultType="java.lang.String">
|
|
|
- SELECT
|
|
|
+ SELECT
|
|
|
(CASE
|
|
|
WHEN
|
|
|
- t2.access_token IS NOT NULL THEN
|
|
|
+ t2.access_token IS NOT NULL
|
|
|
+ THEN
|
|
|
t2.access_token
|
|
|
ELSE t1.access_token
|
|
|
END
|
|
@@ -60,6 +61,6 @@
|
|
|
ctop_oauth_token t1
|
|
|
LEFT JOIN ctop_oauth_agent_token t2 ON t1.app_id = t2.app_id
|
|
|
WHERE
|
|
|
- t1.account_id = = #{accountId}
|
|
|
+ t1.account_id = #{accountId}
|
|
|
</select>
|
|
|
</mapper>
|