|
@@ -62,6 +62,8 @@ group by t1.user_id
|
|
|
wexin_email = #{mail}
|
|
|
</select>
|
|
|
<select id="selectWeiXinIdListByAccountId" resultType="com.alibaba.fastjson.JSONObject" parameterType="java.lang.Long">
|
|
|
+
|
|
|
+ select t.* from(
|
|
|
select wexin_id, corp_id
|
|
|
from ctop_corp_wexin_user
|
|
|
where user_id = (select ctop_user_allocation.user_id from ctop_user_allocation where account_id = #{accountId} limit 1)
|
|
@@ -77,9 +79,10 @@ group by t1.user_id
|
|
|
union all
|
|
|
select wexin_id, corp_id
|
|
|
from ctop_corp_wexin_user
|
|
|
- where user_id = 'f6a6843879c949618e4a859140c8a127'
|
|
|
+ where user_id = 'f6a6843879c949618e4a859140c8a127') t group by t.wexin_id
|
|
|
</select>
|
|
|
<select id="selectBytaDanceWeiXinIdListByAccountId" resultType="com.alibaba.fastjson.JSONObject" parameterType="java.lang.Long">
|
|
|
+ select t.* from(
|
|
|
select wexin_id, corp_id
|
|
|
from ctop_corp_wexin_user
|
|
|
where user_id = (select ctop_user_allocation.user_id
|
|
@@ -97,7 +100,7 @@ group by t1.user_id
|
|
|
union all
|
|
|
select wexin_id, corp_id
|
|
|
from ctop_corp_wexin_user
|
|
|
- where user_id = '461857c245f54ba5813bcb5900a23092'
|
|
|
+ where user_id = '461857c245f54ba5813bcb5900a23092') t group by t.wexin_id
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|