New file |
| | |
| | | package com.dg.core.db.gen.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.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @ApiModel("组织架构实体类") |
| | | @Data |
| | | @TableName("automessage_organization_chart") |
| | | public class OrganizationChartEntity implements Serializable |
| | | { |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @ApiModelProperty("主键id") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 单位名称 |
| | | */ |
| | | @ApiModelProperty("单位名称") |
| | | private String organizationName; |
| | | |
| | | /** |
| | | * 办理区域(市) |
| | | */ |
| | | @ApiModelProperty("办理区域(市)") |
| | | private String city; |
| | | |
| | | |
| | | /** |
| | | * 办理区域(区) |
| | | */ |
| | | @ApiModelProperty("办理区域(区)") |
| | | private String district; |
| | | |
| | | /** |
| | | * 办理区域(乡) |
| | | */ |
| | | @ApiModelProperty("办理区域(乡)") |
| | | private String village; |
| | | |
| | | /** |
| | | * 详细地址 |
| | | */ |
| | | @ApiModelProperty("详细地址") |
| | | private String detailedAddress; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * 更新时间 |
| | | */ |
| | | @ApiModelProperty("更新时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | |
| | | /** |
| | | * 父级单位id |
| | | */ |
| | | @ApiModelProperty("父级单位id") |
| | | private String parentId; |
| | | |
| | | /** |
| | | * 机构等级 |
| | | */ |
| | | @ApiModelProperty("机构等级") |
| | | private String grade; |
| | | |
| | | /** |
| | | * 机构等级 |
| | | */ |
| | | @ApiModelProperty("部门简历") |
| | | private String resume; |
| | | |
| | | /** |
| | | * 机构等级 |
| | | */ |
| | | @ApiModelProperty("联系电话") |
| | | private String contactNumber; |
| | | |
| | | /** |
| | | * 机构等级 |
| | | */ |
| | | @ApiModelProperty("部门应用") |
| | | private String departmentalApplication; |
| | | |
| | | /** |
| | | * 下属机构 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("下属机构") |
| | | private List<OrganizationChartEntity> child; |
| | | |
| | | /** |
| | | * 父级部门名称 |
| | | */ |
| | | @TableField(exist = false) |
| | | @ApiModelProperty("下属机构") |
| | | private String parentName; |
| | | |
| | | |
| | | } |