소스 검색

修改sql

yumeng 4 년 전
부모
커밋
4c9f420b2e
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 7
      module-common/src/main/java/cn/com/ctop/common/module/mapper/xml/UserAllocationMapper.xml

+ 7 - 7
module-common/src/main/java/cn/com/ctop/common/module/mapper/xml/UserAllocationMapper.xml

@@ -33,14 +33,14 @@
     </select>
 
     <select id="getUserIdListByProjectId" resultType="com.alibaba.fastjson.JSONObject">
-    SELECT t2.user_id as 'userId',
-    t2.account_id as 'accountId',
-    t2.user_name  as 'userName'
-    from ctop_user_allocation t1  LEFT JOIN
-    ctop_kuaishou_advertiser_base_info t2
+   SELECT t1.user_id as 'userId',
+    t1.account_id as 'accountId',
+    t1.user_name  as 'userName'
+    from  ctop_kuaishou_advertiser_base_info t1  LEFT JOIN
+    ctop_user_allocation  t2
     ON t1.account_id = t2.account_id
-    WHERE t1.project_id = #{projectId}
-    GROUP BY t2.user_id
+    WHERE t2.project_id = #{projectId}
+    GROUP BY t1.user_id;
     </select>