fix: 修复查询工作空间下项目列表的问题
This commit is contained in:
parent
94efd8d80e
commit
46eed47c00
|
@ -62,6 +62,12 @@
|
|||
#{value}
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="key == 'workspace_id'">
|
||||
AND p.workspace_id IN
|
||||
<foreach collection="values" item="value" separator="," open="(" close=")">
|
||||
#{value}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
</foreach>
|
||||
|
|
|
@ -90,7 +90,7 @@ public class ProjectController {
|
|||
if (StringUtils.isBlank(request.getProjectId())) {
|
||||
List<String> sourceIds = SessionUtils.getUser().getUserGroups().stream().map(UserGroup::getSourceId).collect(Collectors.toList());
|
||||
request.setFilters(new HashMap<String, List<String>>() {{
|
||||
put("project_id", sourceIds);
|
||||
put("workspace_id", sourceIds);
|
||||
}});
|
||||
}
|
||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||
|
|
Loading…
Reference in New Issue