Browse Source

授权手机号

release_toaliyun_real
xhxu 4 years ago
parent
commit
2f4b2b229a
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      mallinkService/src/main/resources/mapper/WxCUserMapper.xml

+ 7
- 5
mallinkService/src/main/resources/mapper/WxCUserMapper.xml View File

@@ -428,13 +428,15 @@
update wx_c_user set update_date=now(), update wx_c_user set update_date=now(),
token = null, token = null,
expire_time=now(), expire_time=now(),
tenant_id = IF(tenant_id is null ,null,CONCAT(tenant_id,"_del")),
parent_tenant_id = IF(parent_tenant_id is null ,null,CONCAT(parent_tenant_id,"_del")),
open_id = IF(open_id is null ,null,CONCAT(open_id,"_del")),
union_id = IF(union_id is null ,null,CONCAT(union_id,"_del"))
where user_id = #{userId} and tenant_id = #{tenantId} and id != #{id}
user_id = null
where user_id = #{userId} and tenant_id = #{tenantId} and id != #{id}
</update> </update>


<!-- tenant_id = IF(tenant_id is null ,null,CONCAT(tenant_id,"_del")),-->
<!-- parent_tenant_id = IF(parent_tenant_id is null ,null,CONCAT(parent_tenant_id,"_del")),-->
<!-- open_id = IF(open_id is null ,null,CONCAT(open_id,"_del")),-->
<!-- union_id = IF(union_id is null ,null,CONCAT(union_id,"_del"))-->



<select id="findOpenIdList" parameterType="hashmap" resultType="String" > <select id="findOpenIdList" parameterType="hashmap" resultType="String" >
select open_id from wx_c_user where user_id=#{userId} and tenant_id = #{tenantId} select open_id from wx_c_user where user_id=#{userId} and tenant_id = #{tenantId}


Loading…
Cancel
Save