|
@@ -1,30 +1,18 @@
|
|
|
package com.uas.platform.b2b.model;
|
|
package com.uas.platform.b2b.model;
|
|
|
|
|
|
|
|
-import java.io.Serializable;
|
|
|
|
|
-
|
|
|
|
|
-import javax.persistence.Cacheable;
|
|
|
|
|
-import javax.persistence.CascadeType;
|
|
|
|
|
-import javax.persistence.Column;
|
|
|
|
|
-import javax.persistence.Entity;
|
|
|
|
|
-import javax.persistence.GeneratedValue;
|
|
|
|
|
-import javax.persistence.GenerationType;
|
|
|
|
|
-import javax.persistence.Id;
|
|
|
|
|
-import javax.persistence.Index;
|
|
|
|
|
-import javax.persistence.JoinColumn;
|
|
|
|
|
-import javax.persistence.OneToOne;
|
|
|
|
|
-import javax.persistence.Table;
|
|
|
|
|
-import javax.persistence.Transient;
|
|
|
|
|
-
|
|
|
|
|
-import com.uas.platform.b2b.erp.model.InquiryVendorInfo;
|
|
|
|
|
-import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
|
|
-import org.hibernate.annotations.Cache;
|
|
|
|
|
-import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
|
|
|
-
|
|
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
|
|
+import com.uas.platform.b2b.erp.model.InquiryVendorInfo;
|
|
|
import com.uas.platform.core.persistence.Logger;
|
|
import com.uas.platform.core.persistence.Logger;
|
|
|
import com.uas.platform.core.persistence.OtherUserUU;
|
|
import com.uas.platform.core.persistence.OtherUserUU;
|
|
|
import com.uas.platform.core.persistence.StatusColumn;
|
|
import com.uas.platform.core.persistence.StatusColumn;
|
|
|
import com.uas.platform.core.persistence.UserUU;
|
|
import com.uas.platform.core.persistence.UserUU;
|
|
|
|
|
+import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
|
|
+import org.hibernate.annotations.Cache;
|
|
|
|
|
+import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
|
|
|
+
|
|
|
|
|
+import javax.persistence.*;
|
|
|
|
|
+import java.io.Serializable;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
@Entity
|
|
@Entity
|
|
|
@Table(name = "purc$vendors", indexes = {@Index(name = "index_vendor_status", columnList = "ve_status"), @Index(name = "index_vendor_myen_venden", columnList = "ve_myenuu, ve_vendenuu", unique = true)})
|
|
@Table(name = "purc$vendors", indexes = {@Index(name = "index_vendor_status", columnList = "ve_status"), @Index(name = "index_vendor_myen_venden", columnList = "ve_myenuu, ve_vendenuu", unique = true)})
|
|
@@ -163,6 +151,12 @@ public class Vendor implements Serializable {
|
|
|
@Column(name = "ve_erpstatus")
|
|
@Column(name = "ve_erpstatus")
|
|
|
private Integer erpstatus;
|
|
private Integer erpstatus;
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 客户资料中的我方联系人显示
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transient
|
|
|
|
|
+ private List<User> myContacts;
|
|
|
|
|
+
|
|
|
public Long getId() {
|
|
public Long getId() {
|
|
|
return id;
|
|
return id;
|
|
|
}
|
|
}
|
|
@@ -328,6 +322,13 @@ public class Vendor implements Serializable {
|
|
|
this.erpstatus = erpstatus;
|
|
this.erpstatus = erpstatus;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public List<User> getMyContacts() {
|
|
|
|
|
+ return myContacts;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setMyContacts(List<User> myContacts) {
|
|
|
|
|
+ this.myContacts = myContacts;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
public InquiryVendorInfo covert() {
|
|
public InquiryVendorInfo covert() {
|
|
|
InquiryVendorInfo info = new InquiryVendorInfo();
|
|
InquiryVendorInfo info = new InquiryVendorInfo();
|