Commit 677f0d6a by zhangkb

完善标签分享代码

parent bc6720bc
...@@ -633,9 +633,15 @@ public class TagService { ...@@ -633,9 +633,15 @@ public class TagService {
//2020-2-20 desc:判断标签是否能被分享使用 //2020-2-20 desc:判断标签是否能被分享使用
private List<ExtTag> decoratorAndShareToExtTag(List<Tag> tags, String userName){ private List<ExtTag> decoratorAndShareToExtTag(List<Tag> tags, String userName){
return tags.stream().map(t -> { return tags.stream().map(t -> {
return new ExtTag(t,t.getTagUser().equals(userName) ? if("0".equals(t.getIsOpen())) {
Constants.TAG_OPERABLE_TRUE : Constants.TAG_OPERABLE_FALSE, return new ExtTag(t,t.getTagUser().equals(userName) ?
this.isShareTag(t) ? Constants.TAG_SHAREABLE_TRUE : Constants.TAG_SHAREABLE_FALSE); Constants.TAG_OPERABLE_TRUE : Constants.TAG_OPERABLE_FALSE,
Constants.TAG_SHAREABLE_TRUE);
}else {
return new ExtTag(t,t.getTagUser().equals(userName) ?
Constants.TAG_OPERABLE_TRUE : Constants.TAG_OPERABLE_FALSE,
this.isShareTag(t) ? Constants.TAG_SHAREABLE_TRUE : Constants.TAG_SHAREABLE_FALSE);
}
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }
//拼接个人标签查询条件 //拼接个人标签查询条件
......
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