|
@@ -13,6 +13,10 @@ import javax.persistence.JoinColumn;
|
|
|
import javax.persistence.OneToOne;
|
|
import javax.persistence.OneToOne;
|
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.SequenceGenerator;
|
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Table;
|
|
|
|
|
+import javax.persistence.Transient;
|
|
|
|
|
+
|
|
|
|
|
+import com.uas.platform.core.model.Constant;
|
|
|
|
|
+import com.uas.platform.core.model.Status;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 平台里面,以供应商的角度来查看客户送货提醒
|
|
* 平台里面,以供应商的角度来查看客户送货提醒
|
|
@@ -121,6 +125,12 @@ public class PurchaseNotice implements Serializable {
|
|
|
*/
|
|
*/
|
|
|
@Column(name = "is_waiting", insertable = false, updatable = false)
|
|
@Column(name = "is_waiting", insertable = false, updatable = false)
|
|
|
private Short waiting;
|
|
private Short waiting;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 是否需要等待发货描述
|
|
|
|
|
+ */
|
|
|
|
|
+ @Transient
|
|
|
|
|
+ private String needWaiting;
|
|
|
|
|
|
|
|
public Long getId() {
|
|
public Long getId() {
|
|
|
return id;
|
|
return id;
|
|
@@ -250,5 +260,18 @@ public class PurchaseNotice implements Serializable {
|
|
|
this.waiting = waiting;
|
|
this.waiting = waiting;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public String getNeedWaiting() {
|
|
|
|
|
+ if(this.waiting == Constant.YES && this.status == Status.NOT_REPLY.value())
|
|
|
|
|
+ return "需要";
|
|
|
|
|
+ else if(this.waiting == Constant.NO && this.status == Status.NOT_REPLY.value())
|
|
|
|
|
+ return "不需要";
|
|
|
|
|
+ else
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setNeedWaiting(String needWaiting) {
|
|
|
|
|
+ this.needWaiting = needWaiting;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|