package com.chinaweal.aiccs.crgs.entity;

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

/**
 * <p>
 * 迁入记录表
 * </p>
 *
 * @author lwd
 * @since 2025-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("CRGS.E_MOVE_IN")
public class EMoveIn extends Model<EMoveIn> {

    private static final long serialVersionUID = 1L;

    /**
     * 迁入记录唯一标识（主键）
     */
    @TableField("MIN_ID")
    private String minId;

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

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

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

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

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

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

    /**
     * 来源节点标识
     */
    @TableField("S_EXT_FROMNODE")
    private String sExtFromnode;

    /**
     * 数据时间戳
     */
    @TableField("S_EXT_DATATIME")
    private Timestamp sExtDatatime;

    /**
     * 迁移类型代码
     */
    @TableField("MOVE_TYPE")
    private String moveType;

    /**
     * 迁移类型详情
     */
    @TableField("MOVE_TYPE_DETAIL")
    private String moveTypeDetail;

    @Override
    protected Serializable pkVal() {
        // 表中MIN_ID为主键，返回主键字段
        return minId;
    }
}
