Skip to content

Commit

Permalink
Fix: pid not set on category update in the admin, causing "参数不对" erro…
Browse files Browse the repository at this point in the history
…r message (#539)
  • Loading branch information
charlyisidore authored Jul 28, 2023
1 parent 596a54d commit 449aae9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class CategoryVo {
private String iconUrl;
private String picUrl;
private String level;
private Integer pid;
private List<CategoryVo> children;

public List<CategoryVo> getChildren() {
Expand Down Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 449aae9

Please sign in to comment.