|
|
@@ -0,0 +1,869 @@
|
|
|
+package com.usoftchina.inquiry.po;
|
|
|
+
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.*;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 公共询价单转报价后的询价单明细
|
|
|
+ *
|
|
|
+ * @author hejq 2018-01-06
|
|
|
+ */
|
|
|
+public class PublicInquiryItem implements Serializable {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * default serialVersionUID
|
|
|
+ */
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * id
|
|
|
+ */
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 来源(买家ERP采购询价明细)的ID
|
|
|
+ */
|
|
|
+ private Long sourceId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 序号
|
|
|
+ */
|
|
|
+ private Short number;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 询价单
|
|
|
+ */
|
|
|
+ private PublicInquiry inquiry;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 买家采购员UU
|
|
|
+ */
|
|
|
+ private Long userUU;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 联系人姓名
|
|
|
+ */
|
|
|
+ private String userName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 联系人电话
|
|
|
+ */
|
|
|
+ private String userTel;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 产品id
|
|
|
+ */
|
|
|
+ private Long productId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 产品
|
|
|
+ */
|
|
|
+ private Product product;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 币种
|
|
|
+ */
|
|
|
+ private String currency;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 税率
|
|
|
+ */
|
|
|
+ private Float taxrate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 供应商UU
|
|
|
+ */
|
|
|
+ private Long vendUU;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 供应商企业信息
|
|
|
+ */
|
|
|
+ private Enterprise enterprise;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 供应商联系人UU
|
|
|
+ */
|
|
|
+ private Long vendUserUU;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 供应商用户信息
|
|
|
+ */
|
|
|
+ private User user;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (买家预先提供的)有效期始
|
|
|
+ */
|
|
|
+ private Date fromDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (卖家报的)最小订购量
|
|
|
+ */
|
|
|
+ private Double minOrderQty;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (卖家报的)最小包装量
|
|
|
+ */
|
|
|
+ private Double minPackQty;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (卖家报的)供应商物料编号
|
|
|
+ */
|
|
|
+ private String vendorprodcode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (卖家报的)交货周期(天数)
|
|
|
+ */
|
|
|
+ private Long leadtime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分段报价明细
|
|
|
+ */
|
|
|
+ private List<PublicInquiryReply> replies;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 状态 200 待回复 、201 已回复 、314 已作废
|
|
|
+ */
|
|
|
+ private Short status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (针对卖家的)询价传输状态{待上传、已下载}
|
|
|
+ */
|
|
|
+ private Short sendStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (针对买家的)报价信息传输状态{待上传、已下载}
|
|
|
+ */
|
|
|
+ private Short backStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (针对卖家的)报价信息传输状态{待上传、已下载}
|
|
|
+ */
|
|
|
+ private Short replySendStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否采纳 1 为已采纳 0为已拒绝 空 未处理
|
|
|
+ */
|
|
|
+ private Short agreed;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 拒绝采纳理由
|
|
|
+ */
|
|
|
+ private String refusereason;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (针对卖家的)是否采纳信息传输状态{待上传、已下载}
|
|
|
+ */
|
|
|
+ private Short decideStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 报价方UAS 是否采纳信息传输状态{待上传、已下载} 202 待上传 203 已下载
|
|
|
+ */
|
|
|
+ private Short decideDownStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * (针对卖家的)作废信息传输状态{待上传、已下载}
|
|
|
+ */
|
|
|
+ private Short invalidStatus;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 录入时间
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Date date;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 保存询价的应用
|
|
|
+ */
|
|
|
+ private String source;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 报价的应用
|
|
|
+ */
|
|
|
+ private String qutoApp;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 报价附件
|
|
|
+ */
|
|
|
+ private Set<Attach> attaches;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 需求数量
|
|
|
+ */
|
|
|
+ private Double needquantity;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * erp传输状态
|
|
|
+ *
|
|
|
+ * <pre>erp发出数据传输请求时,赋给状态,完成后更新状态</pre>
|
|
|
+ *
|
|
|
+ * 1、 传输完成<br>
|
|
|
+ * 0、 正在传输
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Short erpstatus;
|
|
|
+
|
|
|
+ /*这下面是供应商报价时存的相关信息;
|
|
|
+ * 因为存在非客户报价,而且公共服务里面没有企业信息,现存入相关字段,后续处理*/
|
|
|
+ /**
|
|
|
+ * 供应商名称
|
|
|
+ */
|
|
|
+ private String vendName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 供应商营业执照
|
|
|
+ */
|
|
|
+ private String businessCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 报价时间
|
|
|
+ */
|
|
|
+ private Date offerTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 报价截止日期
|
|
|
+ */
|
|
|
+ private Date endDate;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ************* 上传的物料信息,物料冗余字段 *************
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * 物料编号
|
|
|
+ */
|
|
|
+ private String prodCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 名称
|
|
|
+ */
|
|
|
+ private String prodTitle;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 规格
|
|
|
+ */
|
|
|
+ private String spec;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 型号
|
|
|
+ */
|
|
|
+ private String cmpCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 品牌
|
|
|
+ */
|
|
|
+ private String inbrand;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * ******end*******
|
|
|
+ */
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 剩余时间
|
|
|
+ */
|
|
|
+ private Long remainingTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 附件链接
|
|
|
+ */
|
|
|
+ private String attachUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 附件名称
|
|
|
+ */
|
|
|
+ private String attachName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 买家发出公共询价单时录入的币别
|
|
|
+ */
|
|
|
+ private String custCurrency;
|
|
|
+
|
|
|
+ /******** 替代物料信息 */
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 替代型号
|
|
|
+ */
|
|
|
+ private String replaceCmpCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 替代规格
|
|
|
+ */
|
|
|
+ private String replaceSpec;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 替代品牌
|
|
|
+ */
|
|
|
+ private String replaceBrand;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否替代物料报价 1 是替代料报价, 0为普通报价
|
|
|
+ */
|
|
|
+ private Short isReplace = 0;
|
|
|
+
|
|
|
+ /** end */
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 总计价格(用于商城bom求购明细价格分析 dongbw 2018年9月5日 14:59:48)
|
|
|
+ */
|
|
|
+ private Double sumPrice;
|
|
|
+
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getSourceId() {
|
|
|
+ return sourceId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSourceId(Long sourceId) {
|
|
|
+ this.sourceId = sourceId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getNumber() {
|
|
|
+ return number;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNumber(Short number) {
|
|
|
+ this.number = number;
|
|
|
+ }
|
|
|
+
|
|
|
+ public PublicInquiry getInquiry() {
|
|
|
+ return inquiry;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getProductId() {
|
|
|
+ return productId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInquiry(PublicInquiry inquiry) {
|
|
|
+ this.inquiry = inquiry;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProductId(Long productId) {
|
|
|
+ this.productId = productId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Product getProduct() {
|
|
|
+ Product product = new Product();
|
|
|
+ product.setId(this.productId);
|
|
|
+ product.setCode(this.prodCode);
|
|
|
+ product.setSpec(this.spec);
|
|
|
+ product.setCmpCode(this.cmpCode);
|
|
|
+ product.setTitle(this.prodTitle);
|
|
|
+ product.setBrand(this.inbrand);
|
|
|
+ return product;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProduct(Product product) {
|
|
|
+ this.product = product;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProdCode() {
|
|
|
+ return prodCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProdCode(String prodCode) {
|
|
|
+ this.prodCode = prodCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCurrency() {
|
|
|
+ return currency;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCurrency(String currency) {
|
|
|
+ this.currency = currency;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Float getTaxrate() {
|
|
|
+ return taxrate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTaxrate(Float taxrate) {
|
|
|
+ this.taxrate = taxrate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getFromDate() {
|
|
|
+ return fromDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFromDate(Date fromDate) {
|
|
|
+ this.fromDate = fromDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getVendUU() {
|
|
|
+ return vendUU;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVendUU(Long vendUU) {
|
|
|
+ this.vendUU = vendUU;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Enterprise getEnterprise() {
|
|
|
+ return enterprise;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEnterprise(Enterprise enterprise) {
|
|
|
+ this.enterprise = enterprise;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<PublicInquiryReply> getReplies() {
|
|
|
+ return replies;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReplies(List<PublicInquiryReply> replies) {
|
|
|
+ this.replies = replies;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getVendUserUU() {
|
|
|
+ return vendUserUU;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVendUserUU(Long vendUserUU) {
|
|
|
+ this.vendUserUU = vendUserUU;
|
|
|
+ }
|
|
|
+
|
|
|
+ public User getUser() {
|
|
|
+ return user;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUser(User user) {
|
|
|
+ this.user = user;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getAgreed() {
|
|
|
+ return agreed;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAgreed(Short agreed) {
|
|
|
+ this.agreed = agreed;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getStatus() {
|
|
|
+ return status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStatus(Short status) {
|
|
|
+ this.status = status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getSendStatus() {
|
|
|
+ return sendStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSendStatus(Short sendStatus) {
|
|
|
+ this.sendStatus = sendStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getMinOrderQty() {
|
|
|
+ return minOrderQty;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMinOrderQty(Double minOrderQty) {
|
|
|
+ this.minOrderQty = minOrderQty;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getMinPackQty() {
|
|
|
+ return minPackQty;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMinPackQty(Double minPackQty) {
|
|
|
+ this.minPackQty = minPackQty;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getBackStatus() {
|
|
|
+ return backStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBackStatus(Short backStatus) {
|
|
|
+ this.backStatus = backStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getReplySendStatus() {
|
|
|
+ return replySendStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReplySendStatus(Short replySendStatus) {
|
|
|
+ this.replySendStatus = replySendStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getDecideStatus() {
|
|
|
+ return decideStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDecideStatus(Short decideStatus) {
|
|
|
+ this.decideStatus = decideStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getDecideDownStatus() {
|
|
|
+ return decideDownStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDecideDownStatus(Short decideDownStatus) {
|
|
|
+ this.decideDownStatus = decideDownStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getUserUU() {
|
|
|
+ return userUU;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserUU(Long userUU) {
|
|
|
+ this.userUU = userUU;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getUserName() {
|
|
|
+ return userName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserName(String userName) {
|
|
|
+ this.userName = userName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getUserTel() {
|
|
|
+ return userTel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUserTel(String userTel) {
|
|
|
+ this.userTel = userTel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getVendorprodcode() {
|
|
|
+ return vendorprodcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVendorprodcode(String vendorprodcode) {
|
|
|
+ this.vendorprodcode = vendorprodcode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getLeadtime() {
|
|
|
+ return leadtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLeadtime(Long leadtime) {
|
|
|
+ this.leadtime = leadtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getDate() {
|
|
|
+ return date;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDate(Date date) {
|
|
|
+ this.date = date;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSource() {
|
|
|
+ return source;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSource(String source) {
|
|
|
+ this.source = source;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getQutoApp() {
|
|
|
+ return qutoApp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setQutoApp(String qutoApp) {
|
|
|
+ this.qutoApp = qutoApp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getInvalidStatus() {
|
|
|
+ return invalidStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInvalidStatus(Short invalidStatus) {
|
|
|
+ this.invalidStatus = invalidStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Set<Attach> getAttaches() {
|
|
|
+ return attaches;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttaches(Set<Attach> attaches) {
|
|
|
+ this.attaches = attaches;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getNeedquantity() {
|
|
|
+ return needquantity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNeedquantity(Double needquantity) {
|
|
|
+ this.needquantity = needquantity;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getErpstatus() {
|
|
|
+ return erpstatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setErpstatus(Short erpstatus) {
|
|
|
+
|
|
|
+ this.erpstatus = erpstatus ;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getVendName() {
|
|
|
+ return vendName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVendName(String vendName) {
|
|
|
+ this.vendName = vendName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBusinessCode() {
|
|
|
+ return businessCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBusinessCode(String businessCode) {
|
|
|
+ this.businessCode = businessCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getOfferTime() {
|
|
|
+ return offerTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOfferTime(Date offerTime) {
|
|
|
+ this.offerTime = offerTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getEndDate() {
|
|
|
+ return endDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEndDate(Date endDate) {
|
|
|
+ this.endDate = endDate;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProdTitle() {
|
|
|
+ return prodTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProdTitle(String prodTitle) {
|
|
|
+ this.prodTitle = prodTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSpec() {
|
|
|
+ return spec;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSpec(String spec) {
|
|
|
+ this.spec = spec;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCmpCode() {
|
|
|
+ return cmpCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCmpCode(String cmpCode) {
|
|
|
+ this.cmpCode = cmpCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getInbrand() {
|
|
|
+ return inbrand;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInbrand(String inbrand) {
|
|
|
+ this.inbrand = inbrand;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getRemainingTime() {
|
|
|
+ if (null != endDate) {
|
|
|
+ return endDate.getTime() - System.currentTimeMillis();
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAttachUrl() {
|
|
|
+ return attachUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttachUrl(String attachUrl) {
|
|
|
+ this.attachUrl = attachUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAttachName() {
|
|
|
+ return attachName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttachName(String attachName) {
|
|
|
+ this.attachName = attachName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCustCurrency() {
|
|
|
+ return custCurrency;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCustCurrency(String custCurrency) {
|
|
|
+ this.custCurrency = custCurrency;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getRefusereason() {
|
|
|
+ return refusereason;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRefusereason(String refusereason) {
|
|
|
+ this.refusereason = refusereason;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRemainingTime(Long remainingTime) {
|
|
|
+ this.remainingTime = remainingTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getReplaceCmpCode() {
|
|
|
+ return replaceCmpCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReplaceCmpCode(String replaceCmpCode) {
|
|
|
+ this.replaceCmpCode = replaceCmpCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getReplaceSpec() {
|
|
|
+ return replaceSpec;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReplaceSpec(String replaceSpec) {
|
|
|
+ this.replaceSpec = replaceSpec;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getReplaceBrand() {
|
|
|
+ return replaceBrand;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReplaceBrand(String replaceBrand) {
|
|
|
+ this.replaceBrand = replaceBrand;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Short getIsReplace() {
|
|
|
+ return isReplace;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIsReplace(Short isReplace) {
|
|
|
+ this.isReplace = isReplace;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Double getSumPrice() {
|
|
|
+ return sumPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSumPrice(Double sumPrice) {
|
|
|
+ this.sumPrice = sumPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将公共询价单转成报价单
|
|
|
+ *
|
|
|
+ * @param item 公共询价单明细
|
|
|
+ */
|
|
|
+ public PublicInquiryItem(PurcInquiryItemInfo item) {
|
|
|
+ this.date = item.getDate();
|
|
|
+ this.offerTime = new Date(System.currentTimeMillis());
|
|
|
+ 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.id = item.getId();
|
|
|
+ this.userName = item.getUserName();
|
|
|
+ this.userTel = item.getUserTel();
|
|
|
+ this.prodCode = item.getProdCode();
|
|
|
+ this.source = item.getSource();
|
|
|
+ this.endDate = item.getEndDate();
|
|
|
+ this.prodTitle = item.getProdTitle();
|
|
|
+ this.spec = item.getSpec();
|
|
|
+ this.inbrand = item.getInbrand();
|
|
|
+ this.cmpCode = item.getCmpCode();
|
|
|
+ }
|
|
|
+
|
|
|
+ public PublicInquiryItem() {
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 回复记录的描述
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public String replyDescription() {
|
|
|
+ if (!CollectionUtils.isEmpty(this.replies)) {
|
|
|
+ StringBuffer sb = new StringBuffer();
|
|
|
+ for (PublicInquiryReply reply : this.replies) {
|
|
|
+ sb.append("分段数:").append(reply.getLapQty()).append(",").append("价格:").append(reply.getPrice())
|
|
|
+ .append(";");
|
|
|
+ }
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<PublicInquiry> distinct(List<PublicInquiryItem> purcitems) {
|
|
|
+ List<PublicInquiry> inquiries = new ArrayList<>();
|
|
|
+ Set<Long> keys = new HashSet<>();
|
|
|
+ for (PublicInquiryItem item : purcitems) {
|
|
|
+ if (!keys.contains(item.getInquiry().getId())) {
|
|
|
+ inquiries.add(item.getInquiry());
|
|
|
+ keys.add(item.getInquiry().getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return inquiries;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return "PublicInquiryItem{" +
|
|
|
+ "id=" + id +
|
|
|
+ ", sourceId=" + sourceId +
|
|
|
+ ", number=" + number +
|
|
|
+ ", inquiry=" + inquiry +
|
|
|
+ ", userUU=" + userUU +
|
|
|
+ ", userName='" + userName + '\'' +
|
|
|
+ ", userTel='" + userTel + '\'' +
|
|
|
+ ", productId=" + productId +
|
|
|
+ ", product=" + product +
|
|
|
+ ", currency='" + currency + '\'' +
|
|
|
+ ", taxrate=" + taxrate +
|
|
|
+ ", vendUU=" + vendUU +
|
|
|
+ ", enterprise=" + enterprise +
|
|
|
+ ", vendUserUU=" + vendUserUU +
|
|
|
+ ", user=" + user +
|
|
|
+ ", fromDate=" + fromDate +
|
|
|
+ ", minOrderQty=" + minOrderQty +
|
|
|
+ ", minPackQty=" + minPackQty +
|
|
|
+ ", vendorprodcode='" + vendorprodcode + '\'' +
|
|
|
+ ", leadtime=" + leadtime +
|
|
|
+ ", replies=" + replies +
|
|
|
+ ", status=" + status +
|
|
|
+ ", sendStatus=" + sendStatus +
|
|
|
+ ", backStatus=" + backStatus +
|
|
|
+ ", replySendStatus=" + replySendStatus +
|
|
|
+ ", agreed=" + agreed +
|
|
|
+ ", refusereason='" + refusereason + '\'' +
|
|
|
+ ", decideStatus=" + decideStatus +
|
|
|
+ ", decideDownStatus=" + decideDownStatus +
|
|
|
+ ", invalidStatus=" + invalidStatus +
|
|
|
+ ", date=" + date +
|
|
|
+ ", source='" + source + '\'' +
|
|
|
+ ", qutoApp='" + qutoApp + '\'' +
|
|
|
+ ", attaches=" + attaches +
|
|
|
+ ", needquantity=" + needquantity +
|
|
|
+ ", erpstatus=" + erpstatus +
|
|
|
+ ", vendName='" + vendName + '\'' +
|
|
|
+ ", businessCode='" + businessCode + '\'' +
|
|
|
+ ", offerTime=" + offerTime +
|
|
|
+ ", endDate=" + endDate +
|
|
|
+ ", prodCode='" + prodCode + '\'' +
|
|
|
+ ", prodTitle='" + prodTitle + '\'' +
|
|
|
+ ", spec='" + spec + '\'' +
|
|
|
+ ", cmpCode='" + cmpCode + '\'' +
|
|
|
+ ", inbrand='" + inbrand + '\'' +
|
|
|
+ ", remainingTime=" + remainingTime +
|
|
|
+ ", attachUrl='" + attachUrl + '\'' +
|
|
|
+ ", attachName='" + attachName + '\'' +
|
|
|
+ ", custCurrency='" + custCurrency + '\'' +
|
|
|
+ ", replaceCmpCode='" + replaceCmpCode + '\'' +
|
|
|
+ ", replaceSpec='" + replaceSpec + '\'' +
|
|
|
+ ", replaceBrand='" + replaceBrand + '\'' +
|
|
|
+ ", isReplace=" + isReplace +
|
|
|
+ '}';
|
|
|
+ }
|
|
|
+}
|