package com.xmomen.module.beforehandpackagerecord.model;

import lombok.Data;
import com.xmomen.module.beforehandpackagerecord.entity.BeforehandPackageRecord;
import org.springframework.beans.BeanUtils;

    import java.lang.String;
    import java.lang.Integer;
    import java.util.Date;
import java.io.Serializable;


public @Data class BeforehandPackageRecordUpdate implements Serializable {

    // 记录ID
    private String id;

    // CD项ID
    private Integer cdItemId;

    // 包数量
    private Integer packageNum;

    // 插入日期
    private Date insertDate;

    // 插入用户ID
    private Integer insertUserId;

    // 更新日期
    private Date updateDate;

    // 更新用户ID
    private Integer updateUserId;


    // 将BeforehandPackageRecordUpdate对象转换为BeforehandPackageRecord对象
    public BeforehandPackageRecord getEntity(){
        BeforehandPackageRecord beforehandPackageRecord = new BeforehandPackageRecord();
        BeanUtils.copyProperties(this, beforehandPackageRecord);
        return beforehandPackageRecord;
    }
}
