소스 검색

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

huangxuechao 4 년 전
부모
커밋
3522f0399d
1개의 변경된 파일3개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 7
      jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/common/mapper/xml/UserAllocationMapper.xml

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