|
@@ -85,15 +85,11 @@
|
|
|
|
|
|
<select id="getAccountIdsByUserId" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
- allocation.account_id,
|
|
|
- allocation.auth_name,
|
|
|
- project.project_name as project_name
|
|
|
+ allocation.account_id
|
|
|
FROM
|
|
|
+
|
|
|
ctop_user_allocation allocation
|
|
|
- left join ctop_project project on allocation.project_id = project.id
|
|
|
- WHERE
|
|
|
- allocation.user_id = #{userId}
|
|
|
- and allocation.account_status=0
|
|
|
+ where 1 =1 and allocation.project_id in (select DISTINCT project_id from ctop_project_member where user_id = #{userId})
|
|
|
</select>
|
|
|
|
|
|
|