|
@@ -299,6 +299,30 @@ public class PurcInquiryItemInfo {
|
|
|
@Column(name = "id_encapsulation")
|
|
@Column(name = "id_encapsulation")
|
|
|
private String encapsulation;
|
|
private String encapsulation;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 单价预算
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "id_unitprice")
|
|
|
|
|
+ private Double unitPrice;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 截止时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "id_enddate")
|
|
|
|
|
+ private Date endDate;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 剩余时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transient
|
|
|
|
|
+ private Long remainingTime;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 物料报价数量(记录多少人或企业对该物料进行报价)
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "id_offeramount")
|
|
|
|
|
+ private Integer offerAmount;
|
|
|
|
|
+
|
|
|
public Long getId() {
|
|
public Long getId() {
|
|
|
return id;
|
|
return id;
|
|
|
}
|
|
}
|
|
@@ -659,6 +683,37 @@ public class PurcInquiryItemInfo {
|
|
|
this.encapsulation = encapsulation;
|
|
this.encapsulation = encapsulation;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public Double getUnitPrice() {
|
|
|
|
|
+ return unitPrice;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setUnitPrice(Double unitPrice) {
|
|
|
|
|
+ this.unitPrice = unitPrice;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Date getEndDate() {
|
|
|
|
|
+ return endDate;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setEndDate(Date endDate) {
|
|
|
|
|
+ this.endDate = endDate;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getRemainingTime() {
|
|
|
|
|
+ if (null != endDate) {
|
|
|
|
|
+ return endDate.getTime() - System.currentTimeMillis();
|
|
|
|
|
+ }
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Integer getOfferAmount() {
|
|
|
|
|
+ return offerAmount;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setOfferAmount(Integer offerAmount) {
|
|
|
|
|
+ this.offerAmount = offerAmount;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public static List<PurcInquiryInfo> distinct(List<PurcInquiryItemInfo> inquiryItems) {
|
|
public static List<PurcInquiryInfo> distinct(List<PurcInquiryItemInfo> inquiryItems) {
|
|
|
List<PurcInquiryInfo> inquiries = new ArrayList<>();
|
|
List<PurcInquiryInfo> inquiries = new ArrayList<>();
|
|
|
Set<Long> keys = new HashSet<>();
|
|
Set<Long> keys = new HashSet<>();
|
|
@@ -671,53 +726,58 @@ public class PurcInquiryItemInfo {
|
|
|
return inquiries;
|
|
return inquiries;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Override
|
|
|
|
|
- public String toString() {
|
|
|
|
|
- return "PurcInquiryItemInfo{" +
|
|
|
|
|
- "id=" + id +
|
|
|
|
|
- ", number=" + number +
|
|
|
|
|
- ", inquiry=" + inquiry +
|
|
|
|
|
- ", userUU=" + userUU +
|
|
|
|
|
- ", userName='" + userName + '\'' +
|
|
|
|
|
- ", userTel='" + userTel + '\'' +
|
|
|
|
|
- ", userCode='" + userCode + '\'' +
|
|
|
|
|
- ", productId=" + productId +
|
|
|
|
|
- ", product=" + product +
|
|
|
|
|
- ", prodCode='" + prodCode + '\'' +
|
|
|
|
|
- ", prodTitle='" + prodTitle + '\'' +
|
|
|
|
|
- ", spec='" + spec + '\'' +
|
|
|
|
|
- ", unit='" + unit + '\'' +
|
|
|
|
|
- ", cmpCode='" + cmpCode + '\'' +
|
|
|
|
|
- ", inbrand='" + inbrand + '\'' +
|
|
|
|
|
- ", currency='" + currency + '\'' +
|
|
|
|
|
- ", taxrate=" + taxrate +
|
|
|
|
|
- ", remark='" + remark + '\'' +
|
|
|
|
|
- ", vendUU=" + vendUU +
|
|
|
|
|
- ", enterprise=" + enterprise +
|
|
|
|
|
- ", vendUserUU=" + vendUserUU +
|
|
|
|
|
- ", fromDate=" + fromDate +
|
|
|
|
|
- ", toDate=" + toDate +
|
|
|
|
|
- ", vendFromDate=" + vendFromDate +
|
|
|
|
|
- ", vendToDate=" + vendToDate +
|
|
|
|
|
- ", minOrderQty=" + minOrderQty +
|
|
|
|
|
- ", minPackQty=" + minPackQty +
|
|
|
|
|
- ", brand='" + brand + '\'' +
|
|
|
|
|
- ", vendorprodcode='" + vendorprodcode + '\'' +
|
|
|
|
|
- ", leadtime=" + leadtime +
|
|
|
|
|
- ", replies=" + replies +
|
|
|
|
|
- ", status=" + status +
|
|
|
|
|
- ", agreed=" + agreed +
|
|
|
|
|
- ", custLap=" + custLap +
|
|
|
|
|
- ", overdue=" + overdue +
|
|
|
|
|
- ", source='" + source + '\'' +
|
|
|
|
|
- ", isOpen=" + isOpen +
|
|
|
|
|
- ", needquantity=" + needquantity +
|
|
|
|
|
- ", sourceid=" + sourceid +
|
|
|
|
|
- ", date=" + date +
|
|
|
|
|
- ", enuu=" + enuu +
|
|
|
|
|
- ", offerTime=" + offerTime +
|
|
|
|
|
- ", sort='" + sort + '\'' +
|
|
|
|
|
- ", produceDate='" + produceDate + '\'' +
|
|
|
|
|
- '}';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String toString() {
|
|
|
|
|
+ return "PurcInquiryItemInfo{" +
|
|
|
|
|
+ "id=" + id +
|
|
|
|
|
+ ", number=" + number +
|
|
|
|
|
+ ", inquiry=" + inquiry +
|
|
|
|
|
+ ", userUU=" + userUU +
|
|
|
|
|
+ ", userName='" + userName + '\'' +
|
|
|
|
|
+ ", userTel='" + userTel + '\'' +
|
|
|
|
|
+ ", userCode='" + userCode + '\'' +
|
|
|
|
|
+ ", productId=" + productId +
|
|
|
|
|
+ ", product=" + product +
|
|
|
|
|
+ ", prodCode='" + prodCode + '\'' +
|
|
|
|
|
+ ", prodTitle='" + prodTitle + '\'' +
|
|
|
|
|
+ ", spec='" + spec + '\'' +
|
|
|
|
|
+ ", unit='" + unit + '\'' +
|
|
|
|
|
+ ", cmpCode='" + cmpCode + '\'' +
|
|
|
|
|
+ ", inbrand='" + inbrand + '\'' +
|
|
|
|
|
+ ", currency='" + currency + '\'' +
|
|
|
|
|
+ ", taxrate=" + taxrate +
|
|
|
|
|
+ ", remark='" + remark + '\'' +
|
|
|
|
|
+ ", vendUU=" + vendUU +
|
|
|
|
|
+ ", enterprise=" + enterprise +
|
|
|
|
|
+ ", vendUserUU=" + vendUserUU +
|
|
|
|
|
+ ", fromDate=" + fromDate +
|
|
|
|
|
+ ", toDate=" + toDate +
|
|
|
|
|
+ ", vendFromDate=" + vendFromDate +
|
|
|
|
|
+ ", vendToDate=" + vendToDate +
|
|
|
|
|
+ ", minOrderQty=" + minOrderQty +
|
|
|
|
|
+ ", minPackQty=" + minPackQty +
|
|
|
|
|
+ ", brand='" + brand + '\'' +
|
|
|
|
|
+ ", vendorprodcode='" + vendorprodcode + '\'' +
|
|
|
|
|
+ ", leadtime=" + leadtime +
|
|
|
|
|
+ ", replies=" + replies +
|
|
|
|
|
+ ", status=" + status +
|
|
|
|
|
+ ", agreed=" + agreed +
|
|
|
|
|
+ ", custLap=" + custLap +
|
|
|
|
|
+ ", overdue=" + overdue +
|
|
|
|
|
+ ", source='" + source + '\'' +
|
|
|
|
|
+ ", isOpen=" + isOpen +
|
|
|
|
|
+ ", needquantity=" + needquantity +
|
|
|
|
|
+ ", sourceid=" + sourceid +
|
|
|
|
|
+ ", date=" + date +
|
|
|
|
|
+ ", enuu=" + enuu +
|
|
|
|
|
+ ", offerTime=" + offerTime +
|
|
|
|
|
+ ", sort='" + sort + '\'' +
|
|
|
|
|
+ ", produceDate='" + produceDate + '\'' +
|
|
|
|
|
+ ", encapsulation='" + encapsulation + '\'' +
|
|
|
|
|
+ ", unitPrice=" + unitPrice +
|
|
|
|
|
+ ", endDate=" + endDate +
|
|
|
|
|
+ ", remainingTime=" + remainingTime +
|
|
|
|
|
+ ", offerAmount=" + offerAmount +
|
|
|
|
|
+ '}';
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|