package com.muchinfo.mtp3pojos.entity;

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.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 仓单出库提单明细表
 * </p>
 *
 * @author XKF
 * @since 2024-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WROUTINDETAIL")
@ApiModel(value="Wroutindetail对象", description="仓单出库提单明细表")
public class Wroutindetail extends Model<Wroutindetail> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申请ID")
    private Long applyid;

    @ApiModelProperty(value = "提单ID")
    @TableField("LADINGBILLID")
    private Long ladingbillid;

    @ApiModelProperty(value = "提单子单号")
    @TableField("SUBNUM")
    private Long subnum;

    @ApiModelProperty(value = "子提单总数量")
    @TableField("QTY")
    private Long qty;

    @ApiModelProperty(value = "预约数量")
    @TableField("OUTQTY")
    private Long outqty;

    @ApiModelProperty(value = "注销数量")
    @TableField("OUTREALQTY")
    private Long outrealqty;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATORID")
    private Long updatorid;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;

    @ApiModelProperty(value = "仓单要素类型ID")
    @TableField("WRFACTORTYPEID")
    private Long wrfactortypeid;


    @Override
    public Serializable pkVal() {
        return this.applyid;
    }

}
