fix(项目设置): 列表未显示工作空间共享类型的用户组
--bug=1023026 --user=李玉号 【项目管理】在项目中创建用户组-开启工作空间共享,创建后在项目中不显示 https://www.tapd.cn/55049933/s/1335581
This commit is contained in:
parent
89f6674c06
commit
ff67cfedc8
|
@ -8,6 +8,23 @@
|
|||
(SELECT COUNT(DISTINCT ug.user_id) FROM user_group ug JOIN user ON ug.user_id = user.id WHERE ug.group_id =
|
||||
temp.id AND ug.source_id = #{request.projectId}) AS memberSize
|
||||
FROM (
|
||||
SELECT g.*, w.name AS scopeName FROM `group` g, workspace w
|
||||
<where>
|
||||
and g.scope_id = w.id
|
||||
<if test="request.types != null and request.types.size() > 0">
|
||||
AND g.type IN
|
||||
<foreach collection="request.types" item="type" separator="," open="(" close=")">
|
||||
#{type}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="request.scopes != null and request.scopes.size() > 0">
|
||||
AND g.scope_id IN
|
||||
<foreach collection="request.scopes" item="scope" separator="," open="(" close=")">
|
||||
#{scope}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
UNION DISTINCT
|
||||
SELECT g.*, 'global' AS scopeName FROM `group` g
|
||||
<where>
|
||||
g.scope_id = 'global'
|
||||
|
|
Loading…
Reference in New Issue