Commit d16cc9b5 authored by Captain.B's avatar Captain.B Committed by 刘瑞斌
Browse files

fix: 修复查询工作空间下项目列表的问题

parent a3292402
Showing with 7 additions and 1 deletion
+7 -1
...@@ -62,6 +62,12 @@ ...@@ -62,6 +62,12 @@
#{value} #{value}
</foreach> </foreach>
</when> </when>
<when test="key == 'workspace_id'">
AND p.workspace_id IN
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</when>
</choose> </choose>
</if> </if>
</foreach> </foreach>
......
...@@ -90,7 +90,7 @@ public class ProjectController { ...@@ -90,7 +90,7 @@ public class ProjectController {
if (StringUtils.isBlank(request.getProjectId())) { if (StringUtils.isBlank(request.getProjectId())) {
List<String> sourceIds = SessionUtils.getUser().getUserGroups().stream().map(UserGroup::getSourceId).collect(Collectors.toList()); List<String> sourceIds = SessionUtils.getUser().getUserGroups().stream().map(UserGroup::getSourceId).collect(Collectors.toList());
request.setFilters(new HashMap<String, List<String>>() {{ request.setFilters(new HashMap<String, List<String>>() {{
put("project_id", sourceIds); put("workspace_id", sourceIds);
}}); }});
} }
Page<Object> page = PageHelper.startPage(goPage, pageSize, true); Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment