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_STRU表，填加了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_STRU")
@Alias("ExtendSysStru") //轻骑兵底层依赖中已经写了对该表的CRUD操作，这里重写是为了进行扩展，Mybatis Plus不允许有同类名同表名的存在，所以取别名可以解决问题
public class SysStru {

    @TableId(value = "STRU_ID", type = IdType.ASSIGN_ID)
    private Long struId;

    private String struType;

    private Long organId;

    private String organAlias;

    private Long parentId;

    private Long principalId;

    private String corporationId;

    private Integer struLevel;

    private String struFid;

    private String struSeq;

    private String struPath;

    private Integer struOrder;

    private Integer globalOrder;

    private String isLeaf;

    private String delFlag;

    private String departmentId;

    private Long permissionStruId;

    private String provinceCode;

    private Long creator;

    private LocalDateTime createTime;

    private Long lastEditor;

    private LocalDateTime lastTime;

    private String isEmployee;

    private String staffPosition;

    private String iscOrgId;

    //简称
    private String name;


}
