Commit 15612ac5 authored by 陈立彬's avatar 陈立彬

1.助手的知识库分类默认过滤1级

parent 25f28eb2
......@@ -163,6 +163,7 @@ public class AppCommonService {
req.setPageNo(1);
req.setPageSize(999);
req.setStatus(1);
req.setLevel(1);
List<KbTagResponseModel> tagList = kbTagService.kbTagList(req);
if(CollectionUtil.isNotEmpty(tagList)) {
result = tagList.stream().map(v -> {
......
......@@ -14,4 +14,6 @@ public class KbTagRequestModel implements Serializable {
private String name;
private Integer status;
private Integer level;
}
......@@ -61,6 +61,9 @@ public class KbTagServiceImpl extends ServiceImpl<KbTagMapper, KbTagEntity> impl
if(Objects.nonNull(request.getStatus())) {
queryWrapper.and(KB_TAG_ENTITY.STATUS.eq(request.getStatus()));
}
if(Objects.nonNull(request.getLevel())) {
queryWrapper.and(KB_TAG_ENTITY.PARENT_ID.ne(0));
}
queryWrapper.orderBy(KB_TAG_ENTITY.CREATE_AT, false);
return kbTagMapper.selectListByQueryAs(queryWrapper, KbTagResponseModel.class);
......
Markdown is supported
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