Commit 61d729a6 authored by shiyu's avatar shiyu

客态标签页展示

parent ce2a2db2
...@@ -123,13 +123,15 @@ public class CollectionBookServiceImpl implements CollectionBookService { ...@@ -123,13 +123,15 @@ public class CollectionBookServiceImpl implements CollectionBookService {
//查询藏家白名单, 在白名单中说是藏家,需要加上默认标签 //查询藏家白名单, 在白名单中说是藏家,需要加上默认标签
if (dto.getIsHasExtraLabel()) { if (dto.getIsHasExtraLabel()) {
if (collectorWhiteListDao.isExisted(userId)) { if (collectorWhiteListDao.isExisted(userId)) {
for (CollectionBookConstants.DefaultBookEnum defaultBookEnum: CollectionBookConstants.DefaultBookEnum.values()) { if (dto.getViewLabelType().intValue() == 1) {
for (CollectionBookConstants.DefaultBookEnum defaultBookEnum : CollectionBookConstants.DefaultBookEnum.values()) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("id", defaultBookEnum.getId()); map.put("id", defaultBookEnum.getId());
map.put("title", defaultBookEnum.getName()); map.put("title", defaultBookEnum.getName());
list.add(map); list.add(map);
} }
} }
}
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("id", 0); map.put("id", 0);
map.put("title", "我收藏的"); map.put("title", "我收藏的");
......
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