傅行帆 3 years ago
parent
commit
89f7da4348
1 changed files with 1 additions and 15 deletions
  1. 1
    15
      src/main/resources/mapper/TaUserMapper.xml

+ 1
- 15
src/main/resources/mapper/TaUserMapper.xml View File

@@ -66,21 +66,7 @@
66 66
             d.person_id as consultant_person_id,
67 67
             if(d.person_id is not null,1,0) as mini_status
68 68
         FROM
69
-            (SELECT
70
-                u.*
71
-                FROM
72
-                ta_user u
73
-                LEFT JOIN xlk_user_institution i ON u.user_id = i.user_id
74
-                WHERE
75
-                u.org_id = #{taUser.orgId}
76
-                <if test="institutionIds != null and institutionIds.size > 0">
77
-                    AND i.institution_id in
78
-                    <foreach collection="institutionIds" item="item" open="(" close=")" separator=",">
79
-                        #{item}
80
-                    </foreach>
81
-                </if>
82
-                GROUP BY
83
-                u.user_id) t
69
+            ta_user t
84 70
             LEFT JOIN ta_person_building b ON t.user_id = b.user_id
85 71
             LEFT JOIN ta_person d on t.user_id = d.user_id
86 72
         WHERE