查询体系目录接口 新增 入库时不显示"我的收藏"

This commit is contained in:
zhaokaiyao@91isoft.com
2022-01-25 22:45:37 +08:00
parent 0cb9d6c3f7
commit 59e44f1e7e
2 changed files with 14 additions and 2 deletions
@@ -20,7 +20,7 @@ import java.util.List;
/** /**
* <p> * <p>
* *
* </p> * </p>
* *
* @author zyl * @author zyl
@@ -65,7 +65,7 @@ public class TsResource extends BaseEntity {
@ApiModelProperty(value = "排序序号") @ApiModelProperty(value = "排序序号")
@TableField("DISPLAY_SEQ") @TableField("DISPLAY_SEQ")
private Integer displaySeq; private Integer displaySeq;
@ApiModelProperty(value = "是否有效") @ApiModelProperty(value = "是否有效")
@TableField("VALID_FLAG") @TableField("VALID_FLAG")
@@ -100,4 +100,7 @@ public class TsResource extends BaseEntity {
@TableField(exist=false) @TableField(exist=false)
private String userId; private String userId;
@TableField(exist = false)
private String isFlow;
} }
@@ -224,6 +224,15 @@ public class TsResourceServiceImpl extends ServiceImpl<TsResourceDao, TsResource
TsResourceQueryWrapper.like("PARENT_IDS",resource.getId()); TsResourceQueryWrapper.like("PARENT_IDS",resource.getId());
TsResourceQueryWrapper.orderByAsc("DISPLAY_SEQ"); TsResourceQueryWrapper.orderByAsc("DISPLAY_SEQ");
List<TsResource> children=dao.selectList(TsResourceQueryWrapper); List<TsResource> children=dao.selectList(TsResourceQueryWrapper);
/**
* 入库流程去除我的收藏 flow
*/
if ( tsResource.getIsFlow()!=null && "flow".equals(tsResource.getIsFlow())){
children=children.stream()
.filter(item->!"我的收藏".equals(item.getMenuName()))
.collect(Collectors.toList());
}
resource.setChildren(recursionGetListChildrenStand((resource),(children))); resource.setChildren(recursionGetListChildrenStand((resource),(children)));
} }