Commit 395436560e7036a6080df0ea89a7b6a880e8117a

Authored by 云中非
1 parent 1cc780ca

fix(DEFECT-417): 第三方登录账号过期问题修复

第三方账号过期后任然可以登录成功问题修复
@@ -7,7 +7,9 @@ @@ -7,7 +7,9 @@
7 SELECT sus.* 7 SELECT sus.*
8 FROM iotfs_third_user base 8 FROM iotfs_third_user base
9 LEFT JOIN sys_user sus ON base.app_user_id = sus.id 9 LEFT JOIN sys_user sus ON base.app_user_id = sus.id
  10 + LEFT JOIN sys_tenant ste ON ste.tenant_id = sus.tenant_id
10 <where> 11 <where>
  12 + sus.account_expire_time > CURRENT_TIMESTAMP and ste.tenant_expire_time > CURRENT_TIMESTAMP
11 <if test="thirdId !=null and thirdId !=''"> 13 <if test="thirdId !=null and thirdId !=''">
12 AND base.third_user_id = #{thirdId} 14 AND base.third_user_id = #{thirdId}
13 </if> 15 </if>