package com.hdkj.lt.core.sys.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;

/**
 * @Description: 扩展的SYS_ORGAN表，填加了ISC_ID等字段
 * @Author: wenhao
 * @Create: 2024/03/28 13:29
 * @Version: 1.0
 */
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode
@TableName("SYS_ORGAN")
@Alias("ExtendSysOrgan") //轻骑兵底层依赖中已经写了对该表的CRUD操作，这里重写是为了进行扩展，Mybatis Plus不允许有同类名同表名的存在，所以取别名可以解决问题
public class SysOrgan {

    @TableId(value = "ORGAN_ID", type = IdType.ASSIGN_ID)
    private Long organId;

    private String organCode;

    private String organName;

    private String organFcode;

    private String organFname;

    private String shortName;

    private String organType;

    private String workplaceId;

    private String beginDate;

    private String endDate;

    private Integer scn;

    private String delFlag;

    private Long creator;

    private LocalDateTime createTime;

    private Long lastEditor;

    private LocalDateTime lastTime;

    private String parentTypeCode;

    private String iscOrgId;

    private String iscOrgType;

}
