package com.ruoyi.tms.domain;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ruoyi.common.annotation.Excel;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import java.util.Date;
|
|
import lombok.Data;
|
|
/**
|
* 行政区域对象 tms_region
|
*
|
* @author ruoyi
|
* @date 2025-11-03
|
*/
|
@Data
|
public class TmsRegion {
|
|
|
/**
|
* 主键ID
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
|
/**
|
* 级别:0=国家,1=省份,2=城市,3=区县,4=乡镇
|
*/
|
@Excel(name = "级别:0=国家,1=省份,2=城市,3=区县,4=乡镇")
|
@TableField("level")
|
private Integer level;
|
|
|
/**
|
* 行政区域编码
|
*/
|
@Excel(name = "行政区域编码")
|
@TableField("region_code")
|
private String regionCode;
|
|
|
/**
|
* 行政区域名称
|
*/
|
@Excel(name = "行政区域名称")
|
@TableField("region_name")
|
private String regionName;
|
|
|
/**
|
* 邮编
|
*/
|
@Excel(name = "邮编")
|
@TableField("postal_code")
|
private String postalCode;
|
|
|
/**
|
* 名称树
|
*/
|
@Excel(name = "名称树")
|
@TableField("name_tree")
|
private String nameTree;
|
|
|
/**
|
* 上级行政区域编码
|
*/
|
@Excel(name = "上级行政区域编码")
|
@TableField("parent_region_code")
|
private String parentRegionCode;
|
|
|
/**
|
* 排序
|
*/
|
@Excel(name = "排序")
|
@TableField("sort_order")
|
private Integer sortOrder;
|
|
|
/**
|
* 状态:0=正常,1=停用
|
*/
|
@Excel(name = "状态:0=正常,1=停用")
|
@TableField("status")
|
private Integer status;
|
|
|
/**
|
* 创建人
|
*/
|
@TableField("create_by")
|
private String createBy;
|
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@TableField("create_time")
|
private Date createTime;
|
|
|
/**
|
* 更新人
|
*/
|
@Excel(name = "更新人")
|
@TableField("update_by")
|
private String updateBy;
|
|
|
/**
|
* 更新时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@TableField("update_time")
|
private Date updateTime;
|
|
|
/**
|
* 备注
|
*/
|
@TableField("remark")
|
private String remark;
|
|
|
}
|