package net.lab1024.sa.admin.module.business.wms.receive.asnDetail.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

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

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 入库明细 实体类
 *
 * @Author 霍锦
 * @Date 2025-03-26 15:16:28
 * @Copyright 友仓
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_asn_detail")
public class AsnDetailEntity implements Serializable {

    /**
     * 入库明细id
     */
    @TableId(type = IdType.AUTO)
    private Long asnDetailId;

    /**
     * 入库单id
     */
    private Long asnId;

    /**
     * 物料id
     */
    private Long itemId;

    /**
     * 批次号
     */
    private String propC1;

    /**
     * 序列号
     */
    private String propC2;

    /**
     * 订单数量
     */
    private BigDecimal orderQuantity;

    /**
     * 收货数量
     */
    private BigDecimal receivedQuantity;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    private Long createUserId;

    /**
     * 创建人
     */
    private String createUserName;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
