|
|
|
@@ -428,13 +428,15 @@ |
|
|
|
update wx_c_user set update_date=now(), |
|
|
|
token = null, |
|
|
|
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> |
|
|
|
|
|
|
|
<!-- 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 open_id from wx_c_user where user_id=#{userId} and tenant_id = #{tenantId} |
|
|
|
|