package com.hotent.baseInfo.model;

import com.baomidou.mybatisplus.annotation.*;
import com.hotent.base.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDateTime;

/**
 * 被监审单位
 */
@ApiModel(value = "AuditedUnit", description = "被监审单位")
@TableName("cost_audited_unit")
public class AuditedUnit extends BaseModel<AuditedUnit> {

    @TableId(value = "unit_id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    @JsonProperty("unitId")
    private String unitId;

    @TableField("unit_name")
    @ApiModelProperty("被监审单位名称")
    @JsonProperty("unitName")
    private String unitName;

    @TableField("social_credit_code")
    @ApiModelProperty("社会信用代码")
    @JsonProperty("socialCreditCode")
    private String socialCreditCode;

    @TableField("area_level")
    @ApiModelProperty("单位级别：省/市/县")
    @JsonProperty("areaLevel")
    private String areaLevel;

    @TableField("area_code")
    @ApiModelProperty("所属区域代码")
    @JsonProperty("areaCode")
    private String areaCode;

    @TableField("address")
    @ApiModelProperty("办公地址")
    @JsonProperty("address")
    private String address;

    /**
     * 法人代表
     */
    @TableField("corporate_representative")
    @ApiModelProperty(name="corporateRepresentative",notes="法人代表")
    protected  String corporateRepresentative;

    @TableField("entity_type")
    @ApiModelProperty("主体性质：母公司/本部/子公司/关联单位")
    @JsonProperty("entityType")
    private String entityType;

    @TableField("related_units")
    @ApiModelProperty("关联子单位（逗号分隔ID）")
    @JsonProperty("relatedUnits")
    private String relatedUnits;

    @TableField("related_items")
    @ApiModelProperty("关联监审项目（逗号分隔编码）")
    @JsonProperty("relatedItems")
    private String relatedItems;

    @TableField("contact_name")
    @ApiModelProperty("联系人")
    @JsonProperty("contactName")
    private String contactName;

    @TableField("contact_mobile")
    @ApiModelProperty("联系手机")
    @JsonProperty("contactMobile")
    private String contactMobile;

    @TableField("email")
    @ApiModelProperty("电子邮箱")
    @JsonProperty("email")
    private String email;

    @TableField("postal_code")
    @ApiModelProperty("邮政编码")
    @JsonProperty("postalCode")
    private String postalCode;

    @TableField("account")
    @ApiModelProperty("账号")
    @JsonProperty("account")
    private String account;

    @TableField("password")
    @ApiModelProperty("密码（加密存储）")
    @JsonProperty("password")
    private String password;

    @TableField("status")
    @ApiModelProperty("状态：1启用 0停用")
    @JsonProperty("status")
    private Integer status;

    @TableField("is_deleted")
    @ApiModelProperty("逻辑删除")
    @JsonProperty("isDeleted")
    private String isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonProperty("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @JsonProperty("createBy")
    private String createBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @JsonProperty("updateBy")
    private String updateBy;

    @TableField("tenant_id_")
    private String tenantId;

    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public String getCorporateRepresentative() {
        return corporateRepresentative;
    }

    public void setCorporateRepresentative(String corporateRepresentative) {
        this.corporateRepresentative = corporateRepresentative;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getSocialCreditCode() {
        return socialCreditCode;
    }

    public void setSocialCreditCode(String socialCreditCode) {
        this.socialCreditCode = socialCreditCode;
    }


    public String getAreaLevel() {
        return areaLevel;
    }

    public void setAreaLevel(String areaLevel) {
        this.areaLevel = areaLevel;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }



    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEntityType() {
        return entityType;
    }

    public void setEntityType(String entityType) {
        this.entityType = entityType;
    }

    public String getRelatedUnits() {
        return relatedUnits;
    }

    public void setRelatedUnits(String relatedUnits) {
        this.relatedUnits = relatedUnits;
    }

    public String getRelatedItems() {
        return relatedItems;
    }

    public void setRelatedItems(String relatedItems) {
        this.relatedItems = relatedItems;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactMobile() {
        return contactMobile;
    }

    public void setContactMobile(String contactMobile) {
        this.contactMobile = contactMobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
}


