package com.cpop.clockin.business.entity;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 部门表 实体类。
 *
 * @author Yxz
 * @since 2024-01-23
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "部门表对象")
@Table(value = "cp_oam_dept", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class ClockInDept extends BaseEntity implements Serializable {

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    @Id
    private String id;

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

    /**
     * 企微id
     */
    @ApiModelProperty(value = "企微id")
    private Long wxCpId;

    /**
     * 企微父id
     */
    @ApiModelProperty(value = "企微父id")
    private Long wxCpParentId;

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

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer orderNo;

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人")
    private String leader;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 部门状态:1正常,0停用
     */
    @ApiModelProperty(value = "部门状态:1正常,0停用")
    private Boolean status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;





    /**
     * 逻辑删除(0否1是)
     */
    @ApiModelProperty(value = "逻辑删除(0否1是)")
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
