|
@@ -160,9 +160,17 @@ public class MbArtArtworksServiceImpl extends ServiceImpl<MbArtArtworksMapper, M
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public Map<String, List<String>> dictionary() {
|
|
public Map<String, List<String>> dictionary() {
|
|
|
|
|
+
|
|
|
|
|
+ List<String> grades = new ArrayList<>();
|
|
|
|
|
+ grades.add("一级");
|
|
|
|
|
+ grades.add("二级");
|
|
|
|
|
+ grades.add("三级");
|
|
|
|
|
+ grades.add("一般");
|
|
|
|
|
+ grades.add("未定级");
|
|
|
|
|
+
|
|
|
Map<String, List<String>> result = new HashMap<>();
|
|
Map<String, List<String>> result = new HashMap<>();
|
|
|
- result.put("category", this.getBaseMapper().listCategory());
|
|
|
|
|
- result.put("grade", this.getBaseMapper().listGrade());
|
|
|
|
|
|
|
+ result.put("category", this.getBaseMapper().listCategory().stream().filter(v->StrUtil.isNotEmpty(v)).collect(Collectors.toList()));
|
|
|
|
|
+ result.put("grade", grades);
|
|
|
result.put("texture", this.getBaseMapper().listTexture());
|
|
result.put("texture", this.getBaseMapper().listTexture());
|
|
|
result.put("agetype", this.getBaseMapper().listAgetype());
|
|
result.put("agetype", this.getBaseMapper().listAgetype());
|
|
|
return result;
|
|
return result;
|