|
|
@@ -69,12 +69,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_usertel")
|
|
|
private String userTel;
|
|
|
|
|
|
- /**
|
|
|
- * 联系人编号
|
|
|
- */
|
|
|
- @Column(name = "id_usercode")
|
|
|
- private String userCode;
|
|
|
-
|
|
|
/**
|
|
|
* 产品id
|
|
|
*/
|
|
|
@@ -99,12 +93,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_taxrate")
|
|
|
private Float taxrate;
|
|
|
|
|
|
- /**
|
|
|
- * 备注
|
|
|
- */
|
|
|
- @Column(name = "id_remark")
|
|
|
- private String remark;
|
|
|
-
|
|
|
/**
|
|
|
* 供应商UU
|
|
|
*/
|
|
|
@@ -137,12 +125,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_fromdate")
|
|
|
private Date fromDate;
|
|
|
|
|
|
- /**
|
|
|
- * (买家预先提供的)有效期止
|
|
|
- */
|
|
|
- @Column(name = "id_todate")
|
|
|
- private Date toDate;
|
|
|
-
|
|
|
/**
|
|
|
* (卖家报的)最小订购量
|
|
|
*/
|
|
|
@@ -155,12 +137,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_minpackqty")
|
|
|
private Double minPackQty;
|
|
|
|
|
|
- /**
|
|
|
- * (卖家报的)物料品牌
|
|
|
- */
|
|
|
- @Column(name = "id_brand")
|
|
|
- private String brand;
|
|
|
-
|
|
|
/**
|
|
|
* (卖家报的)供应商物料编号
|
|
|
*/
|
|
|
@@ -211,7 +187,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_agreed")
|
|
|
private Short agreed;
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 拒绝采纳理由
|
|
|
*/
|
|
|
@@ -236,12 +211,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_invalidstatus")
|
|
|
private Short invalidStatus;
|
|
|
|
|
|
- /**
|
|
|
- * 是否买家已设置分段数
|
|
|
- */
|
|
|
- @Column(name = "id_custlap")
|
|
|
- private Short custLap;
|
|
|
-
|
|
|
/**
|
|
|
* 录入时间
|
|
|
*
|
|
|
@@ -249,12 +218,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_date")
|
|
|
private Date date;
|
|
|
|
|
|
- /**
|
|
|
- * 是否已过期
|
|
|
- */
|
|
|
- @Column(name = "id_overdue", insertable = false, updatable = false)
|
|
|
- private Short overdue;
|
|
|
-
|
|
|
/**
|
|
|
* 保存询价的应用
|
|
|
*/
|
|
|
@@ -292,12 +255,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_erpstatus")
|
|
|
private Short erpstatus;
|
|
|
|
|
|
- /**
|
|
|
- * 询价种类
|
|
|
- */
|
|
|
- @Column(name = "id_kind")
|
|
|
- private String kind;
|
|
|
-
|
|
|
/*这下面是供应商报价时存的相关信息;
|
|
|
* 因为存在非客户报价,而且公共服务里面没有企业信息,现存入相关字段,后续处理*/
|
|
|
/**
|
|
|
@@ -318,24 +275,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_offertime")
|
|
|
private Date offerTime;
|
|
|
|
|
|
- /**
|
|
|
- * 单价预算
|
|
|
- */
|
|
|
- @Column(name = "id_unitprice")
|
|
|
- private Double unitPrice;
|
|
|
-
|
|
|
- /**
|
|
|
- * 产品生产日期
|
|
|
- */
|
|
|
- @Column(name = "id_producedate")
|
|
|
- private String produceDate;
|
|
|
-
|
|
|
- /**
|
|
|
- * 封装
|
|
|
- */
|
|
|
- @Column(name = "id_encapsulation")
|
|
|
- private String encapsulation;
|
|
|
-
|
|
|
/**
|
|
|
* 报价截止日期
|
|
|
*/
|
|
|
@@ -363,12 +302,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Column(name = "id_prodspec")
|
|
|
private String spec;
|
|
|
|
|
|
- /**
|
|
|
- * 单位
|
|
|
- */
|
|
|
- @Column(name = "id_unit")
|
|
|
- private String unit;
|
|
|
-
|
|
|
/**
|
|
|
* 型号
|
|
|
*/
|
|
|
@@ -391,12 +324,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
@Transient
|
|
|
private Long remainingTime;
|
|
|
|
|
|
- /**
|
|
|
- * 审批状态,公共询价单采用明细单独做审批状态
|
|
|
- */
|
|
|
- @Column(name = "id_checked")
|
|
|
- private Short checked;
|
|
|
-
|
|
|
/**
|
|
|
* 附件链接
|
|
|
*/
|
|
|
@@ -530,14 +457,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.taxrate = taxrate;
|
|
|
}
|
|
|
|
|
|
- public String getRemark() {
|
|
|
- return remark;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRemark(String remark) {
|
|
|
- this.remark = remark;
|
|
|
- }
|
|
|
-
|
|
|
public Date getFromDate() {
|
|
|
return fromDate;
|
|
|
}
|
|
|
@@ -546,14 +465,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.fromDate = fromDate;
|
|
|
}
|
|
|
|
|
|
- public Date getToDate() {
|
|
|
- return toDate;
|
|
|
- }
|
|
|
-
|
|
|
- public void setToDate(Date toDate) {
|
|
|
- this.toDate = toDate;
|
|
|
- }
|
|
|
-
|
|
|
public Long getVendUU() {
|
|
|
return vendUU;
|
|
|
}
|
|
|
@@ -666,14 +577,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.decideDownStatus = decideDownStatus;
|
|
|
}
|
|
|
|
|
|
- public Short getCustLap() {
|
|
|
- return custLap;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCustLap(Short custLap) {
|
|
|
- this.custLap = custLap;
|
|
|
- }
|
|
|
-
|
|
|
public Long getUserUU() {
|
|
|
return userUU;
|
|
|
}
|
|
|
@@ -698,22 +601,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.userTel = userTel;
|
|
|
}
|
|
|
|
|
|
- public String getUserCode() {
|
|
|
- return userCode;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUserCode(String userCode) {
|
|
|
- this.userCode = userCode;
|
|
|
- }
|
|
|
-
|
|
|
- public String getBrand() {
|
|
|
- return brand;
|
|
|
- }
|
|
|
-
|
|
|
- public void setBrand(String brand) {
|
|
|
- this.brand = brand;
|
|
|
- }
|
|
|
-
|
|
|
public String getVendorprodcode() {
|
|
|
return vendorprodcode;
|
|
|
}
|
|
|
@@ -778,14 +665,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.needquantity = needquantity;
|
|
|
}
|
|
|
|
|
|
- public Short getOverdue() {
|
|
|
- return overdue;
|
|
|
- }
|
|
|
-
|
|
|
- public void setOverdue(Short overdue) {
|
|
|
- this.overdue = overdue;
|
|
|
- }
|
|
|
-
|
|
|
public Short getErpstatus() {
|
|
|
return erpstatus;
|
|
|
}
|
|
|
@@ -795,14 +674,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.erpstatus = erpstatus ;
|
|
|
}
|
|
|
|
|
|
- public String getKind() {
|
|
|
- return kind;
|
|
|
- }
|
|
|
-
|
|
|
- public void setKind(String kind) {
|
|
|
- this.kind = kind;
|
|
|
- }
|
|
|
-
|
|
|
public String getVendName() {
|
|
|
return vendName;
|
|
|
}
|
|
|
@@ -827,30 +698,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.offerTime = offerTime;
|
|
|
}
|
|
|
|
|
|
- public Double getUnitPrice() {
|
|
|
- return unitPrice;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUnitPrice(Double unitPrice) {
|
|
|
- this.unitPrice = unitPrice;
|
|
|
- }
|
|
|
-
|
|
|
- public String getProduceDate() {
|
|
|
- return produceDate;
|
|
|
- }
|
|
|
-
|
|
|
- public void setProduceDate(String produceDate) {
|
|
|
- this.produceDate = produceDate;
|
|
|
- }
|
|
|
-
|
|
|
- public String getEncapsulation() {
|
|
|
- return encapsulation;
|
|
|
- }
|
|
|
-
|
|
|
- public void setEncapsulation(String encapsulation) {
|
|
|
- this.encapsulation = encapsulation;
|
|
|
- }
|
|
|
-
|
|
|
public Date getEndDate() {
|
|
|
return endDate;
|
|
|
}
|
|
|
@@ -875,14 +722,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
this.spec = spec;
|
|
|
}
|
|
|
|
|
|
- public String getUnit() {
|
|
|
- return unit;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUnit(String unit) {
|
|
|
- this.unit = unit;
|
|
|
- }
|
|
|
-
|
|
|
public String getCmpCode() {
|
|
|
return cmpCode;
|
|
|
}
|
|
|
@@ -906,14 +745,6 @@ public class PublicInquiryItem implements Serializable {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- public Short getChecked() {
|
|
|
- return checked;
|
|
|
- }
|
|
|
-
|
|
|
- public void setChecked(Short checked) {
|
|
|
- this.checked = checked;
|
|
|
- }
|
|
|
-
|
|
|
public String getAttachUrl() {
|
|
|
return attachUrl;
|
|
|
}
|
|
|
@@ -998,28 +829,21 @@ public class PublicInquiryItem implements Serializable {
|
|
|
public PublicInquiryItem(PurcInquiryItemInfo item) {
|
|
|
this.date = item.getDate();
|
|
|
this.offerTime = new Date(System.currentTimeMillis());
|
|
|
-// this.agreed = item.getAgreed();
|
|
|
this.sourceId = item.getId();
|
|
|
this.currency = item.getCurrency();
|
|
|
this.productId = item.getProductId();
|
|
|
this.needquantity = item.getNeedquantity();
|
|
|
this.fromDate = item.getFromDate();
|
|
|
this.taxrate = item.getTaxrate();
|
|
|
- this.toDate = item.getToDate();
|
|
|
this.id = item.getId();
|
|
|
this.userName = item.getUserName();
|
|
|
- this.userCode = item.getUserCode();
|
|
|
this.userTel = item.getUserTel();
|
|
|
this.prodCode = item.getProdCode();
|
|
|
this.source = item.getSource();
|
|
|
- this.unitPrice = item.getUnitPrice();
|
|
|
- this.produceDate = item.getProduceDate();
|
|
|
this.endDate = item.getEndDate();
|
|
|
- this.encapsulation = item.getEncapsulation();
|
|
|
this.prodTitle = item.getProdTitle();
|
|
|
this.spec = item.getSpec();
|
|
|
this.inbrand = item.getInbrand();
|
|
|
- this.unit = item.getUnit();
|
|
|
this.cmpCode = item.getCmpCode();
|
|
|
}
|
|
|
|
|
|
@@ -1034,9 +858,10 @@ public class PublicInquiryItem implements Serializable {
|
|
|
public String replyDescription() {
|
|
|
if (!CollectionUtils.isEmpty(this.replies)) {
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
- for (PublicInquiryReply reply : this.replies)
|
|
|
+ for (PublicInquiryReply reply : this.replies) {
|
|
|
sb.append("分段数:").append(reply.getLapQty()).append(",").append("价格:").append(reply.getPrice())
|
|
|
.append(";");
|
|
|
+ }
|
|
|
return sb.toString();
|
|
|
}
|
|
|
return null;
|
|
|
@@ -1062,11 +887,9 @@ public class PublicInquiryItem implements Serializable {
|
|
|
.compare(this.inquiry.getEndDate(), new Date(),
|
|
|
DateUtils.COMPARE_DAY) >= 0
|
|
|
&& (this.status == Status.NOT_REPLY.value() || (this.status == Status.REPLIED.value()
|
|
|
- && (this.inquiry.getCheck() == null || this.inquiry.getCheck() != Constant.YES)
|
|
|
&& this.agreed == null) && this.erpstatus != Constant.NO);
|
|
|
}
|
|
|
return null != status && (this.status == Status.NOT_REPLY.value() || (this.status == Status.REPLIED.value()
|
|
|
- && (null != this.inquiry && (this.inquiry.getCheck() == null || this.inquiry.getCheck() != Constant.YES))
|
|
|
&& this.agreed == null) && this.erpstatus != Constant.NO);
|
|
|
}
|
|
|
|
|
|
@@ -1092,21 +915,17 @@ public class PublicInquiryItem implements Serializable {
|
|
|
", userUU=" + userUU +
|
|
|
", userName='" + userName + '\'' +
|
|
|
", userTel='" + userTel + '\'' +
|
|
|
- ", userCode='" + userCode + '\'' +
|
|
|
", productId=" + productId +
|
|
|
", product=" + product +
|
|
|
", currency='" + currency + '\'' +
|
|
|
", taxrate=" + taxrate +
|
|
|
- ", remark='" + remark + '\'' +
|
|
|
", vendUU=" + vendUU +
|
|
|
", enterprise=" + enterprise +
|
|
|
", vendUserUU=" + vendUserUU +
|
|
|
", user=" + user +
|
|
|
", fromDate=" + fromDate +
|
|
|
- ", toDate=" + toDate +
|
|
|
", minOrderQty=" + minOrderQty +
|
|
|
", minPackQty=" + minPackQty +
|
|
|
- ", brand='" + brand + '\'' +
|
|
|
", vendorprodcode='" + vendorprodcode + '\'' +
|
|
|
", leadtime=" + leadtime +
|
|
|
", replies=" + replies +
|
|
|
@@ -1119,30 +938,22 @@ public class PublicInquiryItem implements Serializable {
|
|
|
", decideStatus=" + decideStatus +
|
|
|
", decideDownStatus=" + decideDownStatus +
|
|
|
", invalidStatus=" + invalidStatus +
|
|
|
- ", custLap=" + custLap +
|
|
|
", date=" + date +
|
|
|
- ", overdue=" + overdue +
|
|
|
", source='" + source + '\'' +
|
|
|
", qutoApp='" + qutoApp + '\'' +
|
|
|
", attaches=" + attaches +
|
|
|
", needquantity=" + needquantity +
|
|
|
", erpstatus=" + erpstatus +
|
|
|
- ", kind='" + kind + '\'' +
|
|
|
", vendName='" + vendName + '\'' +
|
|
|
", businessCode='" + businessCode + '\'' +
|
|
|
", offerTime=" + offerTime +
|
|
|
- ", unitPrice=" + unitPrice +
|
|
|
- ", produceDate='" + produceDate + '\'' +
|
|
|
- ", encapsulation='" + encapsulation + '\'' +
|
|
|
", endDate=" + endDate +
|
|
|
", prodCode='" + prodCode + '\'' +
|
|
|
", prodTitle='" + prodTitle + '\'' +
|
|
|
", spec='" + spec + '\'' +
|
|
|
- ", unit='" + unit + '\'' +
|
|
|
", cmpCode='" + cmpCode + '\'' +
|
|
|
", inbrand='" + inbrand + '\'' +
|
|
|
", remainingTime=" + remainingTime +
|
|
|
- ", checked=" + checked +
|
|
|
", attachUrl='" + attachUrl + '\'' +
|
|
|
", attachName='" + attachName + '\'' +
|
|
|
", custCurrency='" + custCurrency + '\'' +
|