package com.zfire.jiasm.syncdata.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 网点,部门表
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdminWebsit对象", description="网点,部门表")
public class AdminWebsit extends Model<AdminWebsit> {

    private static final long serialVersionUID=1L;

    @TableId(value = "admin_websit_id", type = IdType.ID_WORKER_STR)
    private String adminWebsitId;

    private String websitNumber;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "X=销售 S=售后 ")
    private String type;

    @ApiModelProperty(value = "ON=开启 OFF=关闭")
    private String status;

    @ApiModelProperty(value = "父部门id")
    private String parentId;

    @ApiModelProperty(value = "根id(当前部门所属主体网点id)")
    private String rootWebsitId;

    private String adminCompanyId;

    private String adminCompanyName;

    @ApiModelProperty(value = "业务线(冗余用)，仅限看，不做业务处理")
    private String mainNames;

    @ApiModelProperty(value = "在父部门中的次序值。值大的排序靠前")
    private Long sortNum;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;


    @Override
    protected Serializable pkVal() {
        return this.adminWebsitId;
    }

}
