|
|
@@ -19,6 +19,7 @@
|
|
|
<select id="selectAccountRole" resultType="com.usoftchina.saas.account.dto.AccountRoleDTO">
|
|
|
SELECT a.id id,a.username,a.realname,a.email,a.mobile,GROUP_CONCAT(c.name) roleNames,GROUP_CONCAT(c.id) roleIds
|
|
|
FROM ac_account a
|
|
|
+ left join ac_account_company d on a.id = d.account_id
|
|
|
left join ac_account_role b on a.id=b.account_id
|
|
|
left join ac_role c on b.role_id = c.id
|
|
|
<where>
|
|
|
@@ -26,7 +27,7 @@
|
|
|
${condition}
|
|
|
</if>
|
|
|
<if test="companyId!=null">
|
|
|
- AND C.COMPANY_ID = #{companyId}
|
|
|
+ AND d.COMPANY_ID = #{companyId}
|
|
|
</if>
|
|
|
</where>
|
|
|
group by a.id,a.username,a.realname,a.email,a.mobile
|