package com.chinaweal.aiccs.aiccs.punishment.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 个人锁定
 * </p>
 *
 * @author sh
 * @since 2022-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("personlock")
public class Personlock extends Model<Personlock> {

    private static final long serialVersionUID=1L;

    /**
     * 标识ID
     */
      @TableId("PLID")
    private String plid;

    /**
     * 身份证号码
     */
    @TableField("IDCARDNO")
    private String idcardno;

    /**
     * 姓名
     */
    @TableField("PERNAME")
    private String pername;

    /**
     * 所属公司
     */
    @TableField("ENTNAME")
    private String entname;

    /**
     * 所属公司注册号
     */
    @TableField("REGNO")
    private String regno;

    /**
     * 在公司职务
     */
    @TableField("DUTY")
    private String duty;

    /**
     * 涉嫌违法项目
     */
    @TableField("ILLEGALITEM")
    private String illegalitem;

    /**
     * 涉案日期
     */
    @TableField("INVOLVEDATE")
    private LocalDateTime involvedate;

    /**
     * 涉案金额
     */
    @TableField("INVOLVEDMONEY")
    private BigDecimal involvedmoney;

    /**
     * 锁定原因
     */
    @TableField("LOCKREASON")
    private String lockreason;

    /**
     * 锁定开始日期
     */
    @TableField("LOCKSTARTDATE")
    private LocalDateTime lockstartdate;

    /**
     * 锁定结束日期
     */
    @TableField("LOCKENDDATE")
    private LocalDateTime lockenddate;

    /**
     * 锁定人员姓名
     */
    @TableField("LOCKUSERNAME")
    private String lockusername;

    /**
     * 锁定人员ID
     */
    @TableField("LOCKUSERID")
    private String lockuserid;

    /**
     * 锁定人员部门ID
     */
    @TableField("LOCKUSERDEPTID")
    private String lockuserdeptid;

    /**
     * 锁定人员单位ID
     */
    @TableField("LOCKUSERUNITID")
    private String lockuserunitid;

    /**
     * 解锁人员姓名
     */
    @TableField("UNLOCKUSERNAME")
    private String unlockusername;

    /**
     * 解锁人员ID
     */
    @TableField("UNLOCKUSERID")
    private String unlockuserid;

    /**
     * 解锁人员部门ID
     */
    @TableField("ULDEPTID")
    private String uldeptid;

    /**
     * 解锁人员单位ID
     */
    @TableField("ULUNITID")
    private String ulunitid;

    @TableField("UNLDATE")
    private LocalDateTime unldate;

    /**
     * 1-提示;2-限制
     */
    @TableField("LOCKLEVEL")
    private String locklevel;

    /**
     * 0-未锁;1-锁定
     */
    @TableField("LOCKSTATE")
    private String lockstate;

    /**
     * 录入时间
     */
    @TableField("INPUTDATE")
    private LocalDateTime inputdate;

    @TableField("RLOCKUSERNAME")
    private String rlockusername;

    @TableField("RLOCKUSERID")
    private String rlockuserid;

    @TableField("RLOCKUSERUNITID")
    private String rlockuserunitid;

    @TableField("RLOCKUSERDEPID")
    private String rlockuserdepid;

    @TableField("RLOCKDATE")
    private LocalDateTime rlockdate;

    @TableField("ULOCKSEASON")
    private String ulockseason;

    @TableField("ENTTYPE")
    private String enttype;

    @TableField("REGNOID")
    private String regnoid;

    /**
     * 锁定职务
     */
    @TableField("LOCKDUTY")
    private String lockduty;

    @TableField("WHITELOCKTYPE")
    private String whitelocktype;

    /**
     * 地址
     */
    @TableField(exist = false)
    private String address;

    /**
     * 登记机关
     */
    @TableField(exist = false)
    private String regorg;

    /**
     * 登记状态
     */
    @TableField(exist = false)
    private String regstate;

    /**
     * 泰富锁定id
     */
    @TableField("tflockid")
    private String tflockid;

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

}
