提交,文件夹状态下点击,右侧显示文件夹下的最新文档

This commit is contained in:
Sh1yu
2023-09-20 09:27:17 +08:00
parent 221e38f28a
commit 35b4e2806b
2 changed files with 6 additions and 0 deletions

View File

@@ -18,4 +18,5 @@ public class SearchByEsParam {
private Integer pageSize;
private Integer newsType;
private List<Long> spaceIds;
private Long dirId;
}

View File

@@ -14,6 +14,11 @@
a.name like #{keywords} or b.preview like #{keywords}
)
</if>
<if test="dirId != null and dirId != ''">
and (
a.parent_id = #{dirId}
)
</if>
<if test="spaceIds != null and spaceIds.size > 0">
and a.space_id in
<foreach collection="spaceIds" open="(" close=")" item="item" separator=",">#{item}</foreach>