فهرست منبع

修改通用文案用户获取账户Id信息

huangxuechao 4 سال پیش
والد
کامیت
3522f0399d

+ 3 - 7
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/common/mapper/xml/UserAllocationMapper.xml

@@ -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>