diff --git a/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/vo/CategoryVo.java b/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/vo/CategoryVo.java index 27fe89efc..33d5ffe34 100644 --- a/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/vo/CategoryVo.java +++ b/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/vo/CategoryVo.java @@ -10,6 +10,7 @@ public class CategoryVo { private String iconUrl; private String picUrl; private String level; + private Integer pid; private List children; public List getChildren() { @@ -75,4 +76,12 @@ public String getLevel() { public void setLevel(String level) { this.level = level; } + + public Integer getPid() { + return pid; + } + + public void setPid(Integer pid) { + this.pid = pid; + } } diff --git a/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCategoryController.java b/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCategoryController.java index f22cb5c2c..513541d5b 100644 --- a/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCategoryController.java +++ b/litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminCategoryController.java @@ -56,6 +56,7 @@ public Object list() { subCategoryVo.setKeywords(subCategory.getKeywords()); subCategoryVo.setName(subCategory.getName()); subCategoryVo.setLevel(subCategory.getLevel()); + subCategoryVo.setPid(subCategory.getPid()); children.add(subCategoryVo); }