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;
|
|
}
|