这里会用到一个中间po,如下
/**
* 一级类目和二级类目列表
*/
public class CategoryDto {
private ItemCategory father;
private List<ItemCategory> childrens;
public CategoryDto() {
}
public CategoryDto(ItemCategory father, List<ItemCategory> childrens) {
this.father = father;
this.childrens = childrens;
}
public ItemCategory getFather() {
retu