package com.ghy.system.domain;

import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * @author clunt
 * 区域表
 */
@Data
public class SysArea extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Excel(name = "主键id", cellType = Excel.ColumnType.NUMERIC)
    private Long areaId;

    @Excel(name = "区域编码", cellType = Excel.ColumnType.STRING)
    private String areaCode;

    @Excel(name = "区域名称", cellType = Excel.ColumnType.STRING)
    private String areaName;

    @Excel(name = "父级区域编码", cellType = Excel.ColumnType.STRING)
    private String parentCode;

    @Excel(name = "合并名称 如. 北京,西城区", cellType = Excel.ColumnType.STRING)
    private String mergerName;

    @Excel(name = "短名称", cellType = Excel.ColumnType.STRING)
    private String shortName;

    @Excel(name = "合并短名称 如 北京,西城", cellType = Excel.ColumnType.STRING)
    private String mergerShortName;

    @Excel(name = "级别 1.省 2.市 3.区 4.街道", cellType = Excel.ColumnType.STRING)
    private Integer levelType;

    @Excel(name = "拼音", cellType = Excel.ColumnType.STRING)
    private String pinyin;

    @Excel(name = "首字母", cellType = Excel.ColumnType.STRING)
    private String firstChar;

    @Excel(name = "经度", cellType = Excel.ColumnType.STRING)
    private String lng;

    @Excel(name = "纬度", cellType = Excel.ColumnType.STRING)
    private String lat;

    private List<SysArea> child;

    private List<Long> areaIds;

}
