maven
2025-12-25 1d48b3889cb66cc91b8d24e19d03022732615f27
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.ruoyi.sales.pojo;
 
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
 
/**
 * @author :yys
 * @date : 2025/12/25 13:23
 */
@Data
@TableName("area")
public class Area implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty(value = "父级ID:0=省,其他=对应上级ID")
    private Integer parentId;
 
    @ApiModelProperty(value = "区域名称(省/市/区县)")
    private String name;
 
    @ApiModelProperty(value = "层级:1=省,2=市,3=区县")
    private Integer level;
 
    /**
     * 子集
     */
    @TableField(exist = false)
    private List<Area> children;
 
}