|
|
@@ -17,14 +17,12 @@ import javax.persistence.OneToOne;
|
|
|
import javax.persistence.OrderBy;
|
|
|
import javax.persistence.SequenceGenerator;
|
|
|
import javax.persistence.Table;
|
|
|
-import javax.persistence.Transient;
|
|
|
|
|
|
import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
import org.hibernate.annotations.ForeignKey;
|
|
|
import org.hibernate.annotations.Where;
|
|
|
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
-import com.uas.platform.b2b.core.util.DateUtils;
|
|
|
|
|
|
/**
|
|
|
* 平台里面,以供应商的角度来查看采购询价单
|
|
|
@@ -33,7 +31,7 @@ import com.uas.platform.b2b.core.util.DateUtils;
|
|
|
*
|
|
|
*/
|
|
|
@SuppressWarnings("deprecation")
|
|
|
-@Table(name = "purc$inquiry")
|
|
|
+@Table(name = "v$purc$inquiry")
|
|
|
@Entity
|
|
|
public class PurchaseInquiry implements Serializable {
|
|
|
|
|
|
@@ -146,7 +144,7 @@ public class PurchaseInquiry implements Serializable {
|
|
|
/**
|
|
|
* 是否过期
|
|
|
*/
|
|
|
- @Transient
|
|
|
+ @Column(name = "in_overdue", insertable = false, updatable = false)
|
|
|
private Short overdue;
|
|
|
|
|
|
public Long getId() {
|
|
|
@@ -280,7 +278,11 @@ public class PurchaseInquiry implements Serializable {
|
|
|
}
|
|
|
|
|
|
public Short getOverdue() {
|
|
|
- return DateUtils.compare(new Date(), this.endDate, DateUtils.COMPARE_DAY) == 1 ? (short) 1 : 0;
|
|
|
+ return overdue;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOverdue(Short overdue) {
|
|
|
+ this.overdue = overdue;
|
|
|
}
|
|
|
|
|
|
}
|