|
|
|
@ -0,0 +1,822 @@
|
|
|
|
|
package com.hw.mes.api.domain;
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
import com.hw.common.core.annotation.Excel;
|
|
|
|
|
import com.hw.common.core.web.domain.BaseEntity;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
|
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 采购订单信息对象 mes_purchase_order
|
|
|
|
|
*
|
|
|
|
|
* @author Yinq
|
|
|
|
|
* @date 2024-02-19
|
|
|
|
|
*/
|
|
|
|
|
public class MesPurchaseOrder extends BaseEntity {
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 主键标识
|
|
|
|
|
*/
|
|
|
|
|
private Long purchaseOrderId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ERP的主键信息;对应FID
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "ERP的主键信息;对应FID")
|
|
|
|
|
private Long erpId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 对应金蝶ERP订单明细的ID;对应FPOOrderEntry.FEntryID
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "对应金蝶ERP订单明细的ID;对应FPOOrderEntry.FEntryID")
|
|
|
|
|
private Long fentryId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 采购订单编号;对应FBillNo
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "采购订单编号;对应FBillNo")
|
|
|
|
|
private String poNo;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 单据状态;FDocumentStatus
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "单据状态;FDocumentStatus")
|
|
|
|
|
private String documentStatus;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料ID,关联物料信息主键
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "物料ID,关联物料信息主键")
|
|
|
|
|
private Long materialId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料编码;对应FMaterialId.FNumber
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "物料编码;对应FMaterialId.FNumber")
|
|
|
|
|
private String materialCode;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料名称;对应FMaterialId.FName
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "物料名称;对应FMaterialId.FName")
|
|
|
|
|
private String materialName;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 采购订单分类:1ERP同步,2虚拟采购订单
|
|
|
|
|
*/
|
|
|
|
|
private String purchaseOrderClassfication;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 订单计划数量;对应FQty
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "订单计划数量;对应FQty")
|
|
|
|
|
private BigDecimal orderAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 完成采购数量
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "完成采购数量")
|
|
|
|
|
private BigDecimal completeAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 审核日期;对应FApproveDate
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
|
|
|
|
@Excel(name = "审核日期;对应FApproveDate", width = 30, dateFormat = "yyyy-MM-dd")
|
|
|
|
|
private Date approveDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ERP最后修改日期;对应FModifyDate
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
|
|
|
|
@Excel(name = "ERP最后修改日期;对应FModifyDate", width = 30, dateFormat = "yyyy-MM-dd")
|
|
|
|
|
private Date erpModifyDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 计划交货日期;对应FDeliveryDate
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
|
|
|
|
@Excel(name = "计划交货日期;对应FDeliveryDate", width = 30, dateFormat = "yyyy-MM-dd")
|
|
|
|
|
private Date planDeliveryDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 计划开始日期
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
|
|
|
|
@Excel(name = "计划开始日期", width = 30, dateFormat = "yyyy-MM-dd")
|
|
|
|
|
private Date beginDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 计划结束日期
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
|
|
|
|
@Excel(name = "计划结束日期", width = 30, dateFormat = "yyyy-MM-dd")
|
|
|
|
|
private Date endDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 订单状态(1待采购2采购中3采购完成)
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "订单状态(1待采购2采购中3采购完成)")
|
|
|
|
|
private String orderStatus;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 完成日期
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
|
|
|
|
@Excel(name = "完成日期", width = 30, dateFormat = "yyyy-MM-dd")
|
|
|
|
|
private Date completeDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否标识:1-是;0-否
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "是否标识:1-是;0-否")
|
|
|
|
|
private String isFlag;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 采购单位;FUnitId
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "采购单位;FUnitId")
|
|
|
|
|
private Long unitId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 库存单位;FStockUnitID
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "库存单位;FStockUnitID")
|
|
|
|
|
private Long stockUnitId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 计价单位;FPriceUnitID
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "计价单位;FPriceUnitID")
|
|
|
|
|
private Long priceUnitId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 辅助属性;FAuxPropId
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "辅助属性;FAuxPropId")
|
|
|
|
|
private Long auxPropId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 源单编号;FSrcBillNo
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "源单编号;FSrcBillNo")
|
|
|
|
|
private String srcBillNo;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 采购组织;FPurchaseOrgId
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "采购组织;FPurchaseOrgId")
|
|
|
|
|
private Long purchaseOrgId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 京源项目;F_TOND_Base
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "京源项目;F_TOND_Base")
|
|
|
|
|
private String tondBase;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 供应商ID;FSupplierId
|
|
|
|
|
*/
|
|
|
|
|
@Excel(name = "供应商ID;FSupplierId")
|
|
|
|
|
private Long supplierId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 采购销售订单绑定信息信息
|
|
|
|
|
*/
|
|
|
|
|
private List<MesOrderBind> mesOrderBindList;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 判断是否需要绑定
|
|
|
|
|
*/
|
|
|
|
|
private String bindFlag;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 规格参数
|
|
|
|
|
*/
|
|
|
|
|
private String specificationParameter;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 物料规格
|
|
|
|
|
*/
|
|
|
|
|
private String materialSpec;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 销售订单主键
|
|
|
|
|
*/
|
|
|
|
|
private Long saleOrderId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 采购销售订单绑定主键
|
|
|
|
|
*/
|
|
|
|
|
private Long orderBindId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 已绑定数
|
|
|
|
|
*/
|
|
|
|
|
private BigDecimal boundAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 销售订单已绑定数
|
|
|
|
|
*/
|
|
|
|
|
private BigDecimal saleBindAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 安全库存数
|
|
|
|
|
*/
|
|
|
|
|
private BigDecimal safeAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 条码数
|
|
|
|
|
*/
|
|
|
|
|
private BigDecimal barcodeAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新绑定数量
|
|
|
|
|
*/
|
|
|
|
|
private BigDecimal updateAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 序号
|
|
|
|
|
*/
|
|
|
|
|
private Long serialNumber;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 订单绑定的数量和条码的数量,以-分割
|
|
|
|
|
*/
|
|
|
|
|
private String orderBindBarcodeAmount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 安全库存绑定的数量和条码的数量,以-分割
|
|
|
|
|
*/
|
|
|
|
|
private String safeBindBarcodeAmount;
|
|
|
|
|
|
|
|
|
|
private String batchFlag;
|
|
|
|
|
|
|
|
|
|
private BigDecimal batchAmount;
|
|
|
|
|
|
|
|
|
|
private long mesMaterialId;//物料信息表的物料ID主键
|
|
|
|
|
|
|
|
|
|
private String alwaysFlag;
|
|
|
|
|
|
|
|
|
|
private Long productId;
|
|
|
|
|
|
|
|
|
|
private String productCode;
|
|
|
|
|
|
|
|
|
|
private String productName;
|
|
|
|
|
|
|
|
|
|
private String productSpec;
|
|
|
|
|
|
|
|
|
|
private String safeFlag;
|
|
|
|
|
|
|
|
|
|
private String saleOrderCode;
|
|
|
|
|
|
|
|
|
|
private BigDecimal bindAmount;
|
|
|
|
|
|
|
|
|
|
private BigDecimal saleOrderAmount;
|
|
|
|
|
|
|
|
|
|
private String mergeFlag;
|
|
|
|
|
|
|
|
|
|
private String singleFlag;
|
|
|
|
|
|
|
|
|
|
private Long erpMaterialId;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 供应商code
|
|
|
|
|
*/
|
|
|
|
|
private String supplierCode;
|
|
|
|
|
|
|
|
|
|
private String projectNo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Long getSerialNumber() {
|
|
|
|
|
return serialNumber;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSerialNumber(Long serialNumber) {
|
|
|
|
|
this.serialNumber = serialNumber;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getUpdateAmount() {
|
|
|
|
|
return updateAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setUpdateAmount(BigDecimal updateAmount) {
|
|
|
|
|
this.updateAmount = updateAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getBoundAmount() {
|
|
|
|
|
return boundAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBoundAmount(BigDecimal boundAmount) {
|
|
|
|
|
this.boundAmount = boundAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getSaleBindAmount() {
|
|
|
|
|
return saleBindAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSaleBindAmount(BigDecimal saleBindAmount) {
|
|
|
|
|
this.saleBindAmount = saleBindAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getSafeAmount() {
|
|
|
|
|
return safeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSafeAmount(BigDecimal safeAmount) {
|
|
|
|
|
this.safeAmount = safeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getBarcodeAmount() {
|
|
|
|
|
return barcodeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBarcodeAmount(BigDecimal barcodeAmount) {
|
|
|
|
|
this.barcodeAmount = barcodeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getSaleOrderId() {
|
|
|
|
|
return saleOrderId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSaleOrderId(Long saleOrderId) {
|
|
|
|
|
this.saleOrderId = saleOrderId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getOrderBindId() {
|
|
|
|
|
return orderBindId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOrderBindId(Long orderBindId) {
|
|
|
|
|
this.orderBindId = orderBindId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getMaterialSpec() {
|
|
|
|
|
return materialSpec;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMaterialSpec(String materialSpec) {
|
|
|
|
|
this.materialSpec = materialSpec;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSpecificationParameter() {
|
|
|
|
|
return specificationParameter;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSpecificationParameter(String specificationParameter) {
|
|
|
|
|
this.specificationParameter = specificationParameter;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPurchaseOrderId(Long purchaseOrderId) {
|
|
|
|
|
this.purchaseOrderId = purchaseOrderId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getPurchaseOrderId() {
|
|
|
|
|
return purchaseOrderId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setErpId(Long erpId) {
|
|
|
|
|
this.erpId = erpId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getErpId() {
|
|
|
|
|
return erpId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setFentryId(Long fentryId) {
|
|
|
|
|
this.fentryId = fentryId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getFentryId() {
|
|
|
|
|
return fentryId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPoNo(String poNo) {
|
|
|
|
|
this.poNo = poNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPoNo() {
|
|
|
|
|
return poNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDocumentStatus(String documentStatus) {
|
|
|
|
|
this.documentStatus = documentStatus;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDocumentStatus() {
|
|
|
|
|
return documentStatus;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMaterialId(Long materialId) {
|
|
|
|
|
this.materialId = materialId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getMaterialId() {
|
|
|
|
|
return materialId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMaterialCode(String materialCode) {
|
|
|
|
|
this.materialCode = materialCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getMaterialCode() {
|
|
|
|
|
return materialCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMaterialName(String materialName) {
|
|
|
|
|
this.materialName = materialName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getMaterialName() {
|
|
|
|
|
return materialName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPurchaseOrderClassfication() {
|
|
|
|
|
return purchaseOrderClassfication;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPurchaseOrderClassfication(String purchaseOrderClassfication) {
|
|
|
|
|
this.purchaseOrderClassfication = purchaseOrderClassfication;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOrderAmount(BigDecimal orderAmount) {
|
|
|
|
|
this.orderAmount = orderAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getOrderAmount() {
|
|
|
|
|
return orderAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setCompleteAmount(BigDecimal completeAmount) {
|
|
|
|
|
this.completeAmount = completeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getCompleteAmount() {
|
|
|
|
|
return completeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setApproveDate(Date approveDate) {
|
|
|
|
|
this.approveDate = approveDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getApproveDate() {
|
|
|
|
|
return approveDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setErpModifyDate(Date erpModifyDate) {
|
|
|
|
|
this.erpModifyDate = erpModifyDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getErpModifyDate() {
|
|
|
|
|
return erpModifyDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPlanDeliveryDate(Date planDeliveryDate) {
|
|
|
|
|
this.planDeliveryDate = planDeliveryDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getPlanDeliveryDate() {
|
|
|
|
|
return planDeliveryDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBeginDate(Date beginDate) {
|
|
|
|
|
this.beginDate = beginDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getBeginDate() {
|
|
|
|
|
return beginDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setEndDate(Date endDate) {
|
|
|
|
|
this.endDate = endDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getEndDate() {
|
|
|
|
|
return endDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOrderStatus(String orderStatus) {
|
|
|
|
|
this.orderStatus = orderStatus;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getOrderStatus() {
|
|
|
|
|
return orderStatus;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setCompleteDate(Date completeDate) {
|
|
|
|
|
this.completeDate = completeDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getCompleteDate() {
|
|
|
|
|
return completeDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsFlag(String isFlag) {
|
|
|
|
|
this.isFlag = isFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsFlag() {
|
|
|
|
|
return isFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setUnitId(Long unitId) {
|
|
|
|
|
this.unitId = unitId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getUnitId() {
|
|
|
|
|
return unitId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setStockUnitId(Long stockUnitId) {
|
|
|
|
|
this.stockUnitId = stockUnitId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getStockUnitId() {
|
|
|
|
|
return stockUnitId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPriceUnitId(Long priceUnitId) {
|
|
|
|
|
this.priceUnitId = priceUnitId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getPriceUnitId() {
|
|
|
|
|
return priceUnitId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAuxPropId(Long auxPropId) {
|
|
|
|
|
this.auxPropId = auxPropId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getAuxPropId() {
|
|
|
|
|
return auxPropId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSrcBillNo(String srcBillNo) {
|
|
|
|
|
this.srcBillNo = srcBillNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSrcBillNo() {
|
|
|
|
|
return srcBillNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPurchaseOrgId(Long purchaseOrgId) {
|
|
|
|
|
this.purchaseOrgId = purchaseOrgId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getPurchaseOrgId() {
|
|
|
|
|
return purchaseOrgId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTondBase(String tondBase) {
|
|
|
|
|
this.tondBase = tondBase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTondBase() {
|
|
|
|
|
return tondBase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSupplierId(Long supplierId) {
|
|
|
|
|
this.supplierId = supplierId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getSupplierId() {
|
|
|
|
|
return supplierId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<MesOrderBind> getMesOrderBindList() {
|
|
|
|
|
return mesOrderBindList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMesOrderBindList(List<MesOrderBind> mesOrderBindList) {
|
|
|
|
|
this.mesOrderBindList = mesOrderBindList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getBindFlag() {
|
|
|
|
|
return bindFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBindFlag(String bindFlag) {
|
|
|
|
|
this.bindFlag = bindFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getOrderBindBarcodeAmount() {
|
|
|
|
|
return orderBindBarcodeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOrderBindBarcodeAmount(String orderBindBarcodeAmount) {
|
|
|
|
|
this.orderBindBarcodeAmount = orderBindBarcodeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSafeBindBarcodeAmount() {
|
|
|
|
|
return safeBindBarcodeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSafeBindBarcodeAmount(String safeBindBarcodeAmount) {
|
|
|
|
|
this.safeBindBarcodeAmount = safeBindBarcodeAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getBatchFlag() {
|
|
|
|
|
return batchFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBatchFlag(String batchFlag) {
|
|
|
|
|
this.batchFlag = batchFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getBatchAmount() {
|
|
|
|
|
return batchAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBatchAmount(BigDecimal batchAmount) {
|
|
|
|
|
this.batchAmount = batchAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long getMesMaterialId() {
|
|
|
|
|
return mesMaterialId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMesMaterialId(long mesMaterialId) {
|
|
|
|
|
this.mesMaterialId = mesMaterialId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAlwaysFlag() {
|
|
|
|
|
return alwaysFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAlwaysFlag(String alwaysFlag) {
|
|
|
|
|
this.alwaysFlag = alwaysFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getProductId() {
|
|
|
|
|
return productId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setProductId(Long productId) {
|
|
|
|
|
this.productId = productId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getProductCode() {
|
|
|
|
|
return productCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setProductCode(String productCode) {
|
|
|
|
|
this.productCode = productCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getProductName() {
|
|
|
|
|
return productName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setProductName(String productName) {
|
|
|
|
|
this.productName = productName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getProductSpec() {
|
|
|
|
|
return productSpec;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setProductSpec(String productSpec) {
|
|
|
|
|
this.productSpec = productSpec;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSafeFlag() {
|
|
|
|
|
return safeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSafeFlag(String safeFlag) {
|
|
|
|
|
this.safeFlag = safeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSaleOrderCode() {
|
|
|
|
|
return saleOrderCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSaleOrderCode(String saleOrderCode) {
|
|
|
|
|
this.saleOrderCode = saleOrderCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getBindAmount() {
|
|
|
|
|
return bindAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setBindAmount(BigDecimal bindAmount) {
|
|
|
|
|
this.bindAmount = bindAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BigDecimal getSaleOrderAmount() {
|
|
|
|
|
return saleOrderAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSaleOrderAmount(BigDecimal saleOrderAmount) {
|
|
|
|
|
this.saleOrderAmount = saleOrderAmount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getMergeFlag() {
|
|
|
|
|
return mergeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMergeFlag(String mergeFlag) {
|
|
|
|
|
this.mergeFlag = mergeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSingleFlag() {
|
|
|
|
|
return singleFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSingleFlag(String singleFlag) {
|
|
|
|
|
this.singleFlag = singleFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getErpMaterialId() {
|
|
|
|
|
return erpMaterialId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setErpMaterialId(Long erpMaterialId) {
|
|
|
|
|
this.erpMaterialId = erpMaterialId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSupplierCode() {
|
|
|
|
|
return supplierCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSupplierCode(String supplierCode) {
|
|
|
|
|
this.supplierCode = supplierCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getProjectNo() {
|
|
|
|
|
return projectNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setProjectNo(String projectNo) {
|
|
|
|
|
this.projectNo = projectNo;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
|
|
|
|
.append("purchaseOrderId", getPurchaseOrderId())
|
|
|
|
|
.append("erpId", getErpId())
|
|
|
|
|
.append("fentryId", getFentryId())
|
|
|
|
|
.append("poNo", getPoNo())
|
|
|
|
|
.append("documentStatus", getDocumentStatus())
|
|
|
|
|
.append("materialId", getMaterialId())
|
|
|
|
|
.append("materialCode", getMaterialCode())
|
|
|
|
|
.append("materialName", getMaterialName())
|
|
|
|
|
.append("orderAmount", getOrderAmount())
|
|
|
|
|
.append("completeAmount", getCompleteAmount())
|
|
|
|
|
.append("approveDate", getApproveDate())
|
|
|
|
|
.append("erpModifyDate", getErpModifyDate())
|
|
|
|
|
.append("planDeliveryDate", getPlanDeliveryDate())
|
|
|
|
|
.append("beginDate", getBeginDate())
|
|
|
|
|
.append("endDate", getEndDate())
|
|
|
|
|
.append("orderStatus", getOrderStatus())
|
|
|
|
|
.append("completeDate", getCompleteDate())
|
|
|
|
|
.append("isFlag", getIsFlag())
|
|
|
|
|
.append("unitId", getUnitId())
|
|
|
|
|
.append("stockUnitId", getStockUnitId())
|
|
|
|
|
.append("priceUnitId", getPriceUnitId())
|
|
|
|
|
.append("auxPropId", getAuxPropId())
|
|
|
|
|
.append("srcBillNo", getSrcBillNo())
|
|
|
|
|
.append("purchaseOrgId", getPurchaseOrgId())
|
|
|
|
|
.append("tondBase", getTondBase())
|
|
|
|
|
.append("supplierId", getSupplierId())
|
|
|
|
|
.append("remark", getRemark())
|
|
|
|
|
.append("createBy", getCreateBy())
|
|
|
|
|
.append("createTime", getCreateTime())
|
|
|
|
|
.append("updateBy", getUpdateBy())
|
|
|
|
|
.append("updateTime", getUpdateTime())
|
|
|
|
|
.append("mesOrderBindList", getMesOrderBindList())
|
|
|
|
|
.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
|
if (this == o) return true;
|
|
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
|
MesPurchaseOrder that = (MesPurchaseOrder) o;
|
|
|
|
|
boundAmount = boundAmount == null ? BigDecimal.ZERO : boundAmount;
|
|
|
|
|
safeAmount = safeAmount == null ? BigDecimal.ZERO : safeAmount;
|
|
|
|
|
that.boundAmount = that.boundAmount == null ? BigDecimal.ZERO : that.boundAmount;
|
|
|
|
|
that.safeAmount = that.safeAmount == null ? BigDecimal.ZERO : that.safeAmount;
|
|
|
|
|
return Objects.equals(purchaseOrderId, that.purchaseOrderId)
|
|
|
|
|
&& orderAmount.compareTo(that.orderAmount) == 0 //订单数量
|
|
|
|
|
&& boundAmount.compareTo(that.boundAmount) == 0 //已绑定所有销售订单的总数量
|
|
|
|
|
&& safeAmount.compareTo(that.safeAmount) == 0 //安全库存数量
|
|
|
|
|
&& Objects.equals(orderBindBarcodeAmount, that.orderBindBarcodeAmount)//订单已绑定的数量-订单已生成的条码数量
|
|
|
|
|
&& Objects.equals(safeBindBarcodeAmount, that.safeBindBarcodeAmount); //安全库存的数量-安全库存已生成的条码数量
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int hashCode() {
|
|
|
|
|
return Objects.hash(purchaseOrderId, orderAmount, boundAmount, safeAmount, orderBindBarcodeAmount, safeBindBarcodeAmount);
|
|
|
|
|
}
|
|
|
|
|
}
|