package com.prolog.cs.base.gsp.model;

import com.prolog.framework.core.annotation.Column;
import com.prolog.framework.core.annotation.Id;
import com.prolog.framework.core.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @Description
 * @Date 2021-06-29
 */
@Data
@ApiModel
@Table(value = "oms_inventory_order")
public class OmsInventoryOrder implements Serializable {
	private static final long serialVersionUID = 850376771022738974L;

	@Id
	@ApiModelProperty(value = "行ID")
	@Column(value = "lineid")
	private String lineid;

	@ApiModelProperty(value = "单据ID")
	@Column(value = "billid")
	private String billid;

	@ApiModelProperty(value = "单据编号 GL_年月日_4位序列号")
	@Column(value = "billno")
	private String billno;

	@ApiModelProperty(value = "单据类型 1：报损单2：报溢单")
	@Column(value = "type")
	private String type;

	@ApiModelProperty(value = "状态0：已作废10：已创建 20审核中 30已驳回 40已审核")
	@Column(value = "status")
	private String status;

	@ApiModelProperty(value = "货主ID")
	@Column(value = "consignorid")
	private String consignorid;

	@ApiModelProperty(value = "货主名称")
	@Column(value = "consignorname")
	private String consignorname;

	@ApiModelProperty(value = "仓库名称")
	@Column(value = "branchname")
	private String branchname;

	@ApiModelProperty(value = "仓库ID")
	@Column(value = "branchid")
	private String branchid;

	@ApiModelProperty(value = "商品ID")
	@Column(value = "itemid")
	private String itemid;

	@ApiModelProperty(value = "商品名称")
	@Column(value = "itemname")
	private String itemname;

	@ApiModelProperty(value = "商品编码")
	@Column(value = "itemcode")
	private String itemcode;

	@ApiModelProperty(value = "单价")
	@Column(value = "price")
	private BigDecimal price;

	@ApiModelProperty(value = "数量")
	@Column(value = "amount")
	private BigDecimal amount;

	@ApiModelProperty(value = "包装数量")
	@Column(value = "pack_amount")
	private BigDecimal packAmount;

	@ApiModelProperty(value = "包装单位")
	@Column(value = "pack_unit")
	private String packUnit;

	@ApiModelProperty(value = "总金额")
	@Column(value = "total_price")
	private BigDecimal totalPrice;

	@ApiModelProperty(value = "规格")
	@Column(value = "spec")
	private String spec;

	@ApiModelProperty(value = "产地")
	@Column(value = "place")
	private String place;

	@ApiModelProperty(value = "生产企业")
	@Column(value = "manufacturer")
	private String manufacturer;

	@ApiModelProperty(value = "批号")
	@Column(value = "batch_num")
	private String batchNum;

	@ApiModelProperty(value = "生产日期")
	@Column(value = "production_date")
	private Date productionDate;

	@ApiModelProperty(value = "有效期至")
	@Column(value = "expired_date")
	private Date expiredDate;

	@ApiModelProperty(value = "批准文号")
	@Column(value = "approval_number")
	private String approvalNumber;

	@ApiModelProperty(value = "原因")
	@Column(value = "reason")
	private String reason;

	@ApiModelProperty(value = "扩展字段1")
	@Column(value = "attr_str1")
	private String attrStr1;

	@ApiModelProperty(value = "扩展字段2")
	@Column(value = "attr_str2")
	private String attrStr2;

	@ApiModelProperty(value = "扩展字段3")
	@Column(value = "attr_str3")
	private String attrStr3;

	@ApiModelProperty(value = "扩展字段4")
	@Column(value = "attr_str4")
	private String attrStr4;

	@ApiModelProperty(value = "扩展字段5")
	@Column(value = "attr_str5")
	private String attrStr5;

	@ApiModelProperty(value = "创建时间")
	@Column(value = "createdate")
	private Date createdate;

	@ApiModelProperty(value = "创建人")
	@Column(value = "createby")
	private String createby;

	@ApiModelProperty(value = "修改时间")
	@Column(value = "lastmodifydate")
	private Date lastmodifydate;

	@ApiModelProperty(value = "修改人")
	@Column(value = "lastmodifyby")
	private String lastmodifyby;

	@ApiModelProperty(value = "企业ID")
	@Column(value = "p_enterpriseid")
	private String enterpriseid;

	@ApiModelProperty(value = "企业名称")
	@Column(value = "p_enterprisename")
	private String enterprisename;

	@ApiModelProperty(value = "行号")
	@Column(value = "seqno")
	private String seqno;

	@ApiModelProperty(value = "业务类型")
	@Column(value = "billtype")
	private String billtype;

	@ApiModelProperty(value = "库存状态")
	@Column(value = "stockstatus")
	private String stockstatus;

	@ApiModelProperty(value = "单据日期")
	@Column(value = "billdate")
	private Date billdate;

	@ApiModelProperty(value = "基本数量")
	@Column(value = "basenum")
	private BigDecimal basenum;

	@ApiModelProperty(value = "执行数量")
	@Column(value = "execnum")
	private BigDecimal execnum;

	@ApiModelProperty(value = "个别计价")
	@Column(value = "gebjj")
	private BigDecimal gebjj;

	@ApiModelProperty(value = "考核成本价")
	@Column(value = "k_taxcost")
	private BigDecimal kTaxcost;

	@ApiModelProperty(value = "件包装规格")
	@Column(value = "wmsmeas")
	private String wmsmeas;

	@ApiModelProperty(value = "业务员ID")
	@Column(value = "salemanid")
	private String salemanid;

	@ApiModelProperty(value = "操作人ID")
	@Column(value = "caozyid")
	private String caozyid;

	@ApiModelProperty(value = "部门ID")
	@Column(value = "deptid")
	private String deptid;

	@ApiModelProperty(value = "备注")
	@Column(value = "remark")
	private String remark;

	@ApiModelProperty(value = "货主编号")
	@Column(value = "consignorcode")
	private String consignorcode;

	@ApiModelProperty(value = "仓库编号")
	@Column(value = "branchcode")
	private String branchcode;

	@ApiModelProperty(value = "1:wms;2:erp")
	@Column(value = "datasource")
	private String datasource;
	
	@ApiModelProperty(value = "是否需要销毁")
	@Column(value = "is_destroy")
	private String isDestroy;
	
	@ApiModelProperty(value = "建筑物")
	@Column(value = "building")
	private String building;

}
