package com.shinsoft.sto.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shinsoft.generator.model.BaseModel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * <p>
 * 盘库记录表
 * </p>
 *
 * @author system
 * @since 2024-10-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("STO_STOCKTAKING")
@ApiModel(value = "Stocktaking对象", description = "盘库记录表")
public class Stocktaking extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("公司代码")
    private String compCd;

    @ApiModelProperty("部门代码")
    private String deptCd;

    @ApiModelProperty("库房代码（公司代码+类型+编号)")
    private String storeCd;

    @ApiModelProperty("库房名称")
    private String storeNm;

    @ApiModelProperty("区号")
    private String areaCd;

    @ApiModelProperty("垛位号")
    private String stackCd;

    @ApiModelProperty("物料编码")
    private String itemCd;

    @ApiModelProperty("物料名称")
    private String itemNm;

    @ApiModelProperty("规格")
    private String itemType;

    @ApiModelProperty("单位")
    private String oum;

    @ApiModelProperty("批号")
    private String batchNo;

    @ApiModelProperty("本次盘库量")
    private BigDecimal qty;

    @ApiModelProperty("本次盘库湿基量")
    private BigDecimal qtyWet;

    @ApiModelProperty("原库存量")
    private BigDecimal qtyOld;

    @ApiModelProperty("原库存湿基量")
    private BigDecimal qtyWetOld;

    @ApiModelProperty("新库存量")
    private BigDecimal qtyNew;

    @ApiModelProperty("新库存湿基量")
    private BigDecimal qtyWetNew;

    @ApiModelProperty("盘库时间")
    @JSONField(format = "yyyy-MM-dd")
    private Date stocktakingDate;

    @ApiModelProperty("盘库人")
    private String stocktakingUser;

    @ApiModelProperty("上传人员")
    private String submitEmpId;

    @ApiModelProperty("上传状态（0-未传，1-已传）")
    private String submitFlag;

    @ApiModelProperty("上传时间")
    private Date submitDtm;

    @ApiModelProperty("备注")
    private String remarks;

    private String attr1;

    private String attr2;

    private String attr3;

    private String attr4;

    private String attr5;

    private String attr6;

    private String attr7;

    private String attr8;

    private String attr9;

    private String attr10;
}
