package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 行政区域表
 * </p>
 *
 * @author XKF
 * @since 2024-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("DIVISION")
@ApiModel(value="Division对象", description="行政区域表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Division extends Model<Division> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    private Long autoid;

    @ApiModelProperty(value = "行政代码")
    @TableField("DIVISIONCODE")
    private String divisioncode;

    @ApiModelProperty(value = "地区简码")
    @TableField("SHORTCODE")
    private String shortcode;

    @ApiModelProperty(value = "上级行政代码")
    @TableField("PARENTCODE")
    private String parentcode;

    @ApiModelProperty(value = "行政级别")
    @TableField("DIVISIONLEVEL")
    private String divisionlevel;

    @ApiModelProperty(value = "行政名称")
    @TableField("DIVISIONNAME")
    private String divisionname;

    @ApiModelProperty(value = "路径名称")
    @TableField("PATHNAME")
    private String pathname;

    @ApiModelProperty(value = "可拆分的全称")
    @TableField("SEPARABLENAME")
    private String separablename;

    @ApiModelProperty(value = "邮政编码")
    @TableField("POSTCODE")
    private String postcode;

    @ApiModelProperty(value = "修改时间")
    @TableField("MODIFYTIME")
    private Date modifytime;

    @ApiModelProperty(value = "修改人")
    @TableField("MODIFIERID")
    private Long modifierid;


    @Override
    public Serializable pkVal() {
        return this.autoid;
    }

}
