package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 上货记录明细实体类
 */
@Data
@TableName("t_stock_record_item")
public class StockRecordItem implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 上货记录ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long recordId;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 商品ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productId;

    /**
     * 商品编码
     */
    private String productCode;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 货架层号
     */
    private Integer shelfNum;

    /**
     * 上货数量
     */
    private Integer quantity;

    /**
     * 上货前库存
     */
    private Integer beforeStock;

    /**
     * 上货后库存
     */
    private Integer afterStock;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
