package com.kxs.store.api.model;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

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.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 客小爽仓库库存变动记录表(KxsWarehouseStockLog)表实体类
 *
 * @author 系统
 * @since 2024-01-08 09:46:02
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsWarehouseStockLog extends Model<KxsWarehouseStockLog> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    private String delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    private Integer warehouseId;


    /**
     * 品牌ID
     */
    @Schema(description = "品牌ID")
    private Integer brandId;


    /**
     * 操作数量
     */
    @Schema(description = "操作数量")
    private Integer changeNum;


    /**
     * 变动类型 采购=0 调拨=1 出货=2 退货=3
     */
    @Schema(description = "变动类型 采购=0 调拨=1 出货=2 退货=3")
    private Integer changeType;


    /**
     * 操作前总库存数
     */
    @Schema(description = "操作前总库存数")
    private Integer beforeStockTotal;


    /**
     * 操作后库存数
     */
    @Schema(description = "操作后库存数")
    private Integer afterStockTotal;


    /**
     * 操作前剩余库存数
     */
    @Schema(description = "操作前剩余库存数")
    private Integer beforeStockNum;


    /**
     * 操作后剩余库存数
     */
    @Schema(description = "操作后剩余库存数")
    private Integer afterStockNum;


    /**
     * 操作前出库数
     */
    @Schema(description = "操作前出库数")
    private Integer beforeDeliveryNum;


    /**
     * 操作后出库数
     */
    @Schema(description = "操作后出库数")
    private Integer afterDeliveryNum;

    /**
     * 操作 add加 sub减
     */
    private String kind;


}

