package com.moral.api.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import java.time.LocalDateTime;
|
import java.io.Serializable;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
/**
|
* <p>
|
* 组织表
|
* </p>
|
*
|
* @author moral
|
* @since 2021-03-09
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
public class Organization extends Model<Organization> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 序号
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
* 父Id
|
*/
|
private Integer parentId;
|
|
/**
|
* admin账号Id
|
*/
|
private Integer adminUserId;
|
|
/**
|
* 组织名称
|
*/
|
private String name;
|
|
/**
|
* 省份代码
|
*/
|
private Integer provinceCode;
|
|
/**
|
* 城市代码
|
*/
|
private Integer cityCode;
|
|
/**
|
* 县代码
|
*/
|
private Integer areaCode;
|
|
/**
|
* 镇代码
|
*/
|
private Long townCode;
|
|
/**
|
* 街道代码
|
*/
|
private Long villageCode;
|
|
/**
|
* 地图定位级别 provincd_code city_code ......
|
*/
|
private String locationLevel;
|
|
/**
|
* 地址
|
*/
|
private String address;
|
|
/**
|
* 手机号
|
*/
|
private String phone;
|
|
/**
|
* 邮箱
|
*/
|
private String email;
|
|
/**
|
* 微信号
|
*/
|
private String wechat;
|
|
/**
|
* 创建时间
|
*/
|
private LocalDateTime createTime;
|
|
/**
|
* 更新时间
|
*/
|
private LocalDateTime updateTime;
|
|
/**
|
* 到期时间
|
*/
|
private LocalDateTime expireTime;
|
|
/**
|
* 是否删除
|
*/
|
private String isDelete;
|
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|