| | |
| | | package cn.cetc54.platform.zhyl.entity; |
| | | |
| | | |
| | | import cn.cetc54.platform.core.base.BaseEntity; |
| | | import cn.cetc54.platform.core.common.constant.CommonConstant; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.DynamicInsert; |
| | | import org.hibernate.annotations.DynamicUpdate; |
| | | |
| | | import javax.persistence.Column; |
| | | import javax.persistence.Entity; |
| | | import javax.persistence.Table; |
| | | |
| | | /** |
| | | * 区域 |
| | | * @author xfei |
| | | * @date 2020/12/10 |
| | | * @author |
| | | */ |
| | | public class Area { |
| | | } |
| | | @Data |
| | | @Entity |
| | | @DynamicInsert |
| | | @DynamicUpdate |
| | | @Table(name = "t_yl_area") |
| | | @TableName("t_yl_area") |
| | | @ApiModel(value = "区域") |
| | | public class Area extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Column( length = 20 ,name = "name") |
| | | @ApiModelProperty(value = "区域名称") |
| | | private String name; |
| | | |
| | | @Column( length = 24 ,name = "pid") |
| | | @ApiModelProperty(value = "上级区域id") |
| | | private String pid; |
| | | |
| | | } |