package com.shinsoft.sto.model;

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 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 2025-01-13
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("STO_PICK_RECORD")
@ApiModel(value = "PickRecord对象", description = "领料记录表")
public class PickRecord extends BaseModel {

    private static final long serialVersionUID = 1L;

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

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

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

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

    @ApiModelProperty("物料类型")
    private String itemType;

    @ApiModelProperty("领料业务单号")
    private String pickRecordNo;

    @ApiModelProperty("数量")
    private BigDecimal qty;

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

    @ApiModelProperty("库房")
    private String storeCd;

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

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

    @ApiModelProperty("领料类型（0退料/1领料）")
    private String pickType;

    @ApiModelProperty("湿基")
    private BigDecimal qtyWet;

    @ApiModelProperty("领料时间")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date pickDate;

    @ApiModelProperty("采购订单号")
    private String purOrdNo;

    @ApiModelProperty("采购订单行号")
    private String purOrdLn;

    @ApiModelProperty("供应商ID")
    private String tradePartnerId;

    @ApiModelProperty("供应商编码")
    private String tradePartnerCode;

    @ApiModelProperty("供应商名称")
    private String tradePartnerName;

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

    @ApiModelProperty("合同号")
    private String contrNo;

    @ApiModelProperty("合同行号")
    private String contrLineNo;
    @TableField(exist = false)
    private String storeNm;
    @TableField(exist = false)
    private String storeType;
}
