shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.ishop.model.vo;
 
import com.walker.infrastructure.utils.StringUtils;
 
import java.util.LinkedList;
import java.util.List;
 
public class CityTreeVo extends CityVo{
 
    public void addChild(CityTreeVo vo){
        if(this.child == null){
            this.child = new LinkedList<>();
        }
        this.child.add(vo);
        this.setIsChild(true);
    }
 
    public List<CityTreeVo> getChild() {
        return child;
    }
 
    public void setChild(List<CityTreeVo> child) {
        this.child = child;
        if(!StringUtils.isEmptyList(child)){
            this.setIsChild(true);
        }
    }
 
    //    @ApiModelProperty(value = "子区域列表")
    private List<CityTreeVo> child;
}