Commit 7c52a51e8e4a72d118cfb7b973e32a1afd6b0101

Authored by 云中非
1 parent 795c47bf

fix(DEFECT-435): 第三方登录过期时间为空异常修复

@@ -9,7 +9,8 @@ @@ -9,7 +9,8 @@
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 LEFT JOIN sys_tenant ste ON ste.tenant_id = sus.tenant_id
11 <where> 11 <where>
12 - sus.account_expire_time > CURRENT_TIMESTAMP and ste.tenant_expire_time > CURRENT_TIMESTAMP 12 + (sus.account_expire_time > CURRENT_TIMESTAMP OR sus.account_expire_time IS NULL)
  13 + AND (ste.tenant_expire_time > CURRENT_TIMESTAMP OR ste.tenant_expire_time IS NULL)
13 <if test="thirdId !=null and thirdId !=''"> 14 <if test="thirdId !=null and thirdId !=''">
14 AND base.third_user_id = #{thirdId} 15 AND base.third_user_id = #{thirdId}
15 </if> 16 </if>