package com.chinaweal.aiccs.crgs.movein.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_zc_entity_movein")
public class TbZcEntityMovein extends Model<TbZcEntityMovein> {

    private static final long serialVersionUID=1L;

    /**
     * 迁入记录id
     */
    @TableId("MIID")
    private String miid;

    /**
     * 主体主键
     */
    @TableField("PRIPID")
    private String pripid;

    /**
     * 迁入文书号
     */
    @TableField("MINLETNUM")
    private String minletnum;

    /**
     * 迁入地
     */
    @TableField("MINREA")
    private String minrea;

    /**
     * 迁入时间
     */
    @TableField("MINDATE")
    private LocalDateTime mindate;

    /**
     * 迁出地
     */
    @TableField("MOUTAREA")
    private String moutarea;

    /**
     * 迁出地登记机关
     */
    @TableField("MOUTAREREGORG")
    private String moutareregorg;

    /**
     * 变更类型
     * 1 市内迁移
     * 2 外地（省外）迁移到内蒙
     * 3 企业类型变更
     * 4 类型变更
     * 5 省内迁移
     */
    @TableField("MINSIGN")
    private String minsign;

    /**
     * 无意义
     */
    @TableField("SCBZ")
    private String scbz;

    /**
     * 变更事件
     */
    @TableField("ZHXGSJ")
    private LocalDateTime zhxgsj;


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

}
