Commit 61d729a6 authored by shiyu's avatar shiyu

客态标签页展示

parent ce2a2db2
...@@ -123,11 +123,13 @@ public class CollectionBookServiceImpl implements CollectionBookService { ...@@ -123,11 +123,13 @@ 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) {
Map<String, Object> map = new HashMap<>(); for (CollectionBookConstants.DefaultBookEnum defaultBookEnum : CollectionBookConstants.DefaultBookEnum.values()) {
map.put("id", defaultBookEnum.getId()); Map<String, Object> map = new HashMap<>();
map.put("title", defaultBookEnum.getName()); map.put("id", defaultBookEnum.getId());
list.add(map); map.put("title", defaultBookEnum.getName());
list.add(map);
}
} }
} }
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
......
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