|
|
@@ -98,7 +98,7 @@ public class PurchaseInquiryItemSimpleInfo {
|
|
|
private Short status;
|
|
|
|
|
|
/**
|
|
|
- * 是否过期(1过期,0未过期)
|
|
|
+ * 是否过期(1过期,0未过期)--1为已失效,0为未失效
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@@ -197,6 +197,10 @@ public class PurchaseInquiryItemSimpleInfo {
|
|
|
|
|
|
@SuppressWarnings("deprecation")
|
|
|
public Short getOverdue() {
|
|
|
+ if (this.status == 314 || this.getInvalid() == 1
|
|
|
+ || (this.status == 200 && null != this.getInquiry().getCheck() && this.getInquiry().getCheck() == 1)) { // 已作废、过了报价有效期、未报价但是客户已提交的
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
if (this.getInquiry().getEndDate() == null) {
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -210,7 +214,7 @@ public class PurchaseInquiryItemSimpleInfo {
|
|
|
end.set(Calendar.YEAR, this.getInquiry().getEndDate().getYear());
|
|
|
end.set(Calendar.MONTH, this.getInquiry().getEndDate().getMonth());
|
|
|
end.set(Calendar.DAY_OF_MONTH, this.getInquiry().getEndDate().getDate());
|
|
|
- if (now.compareTo(end) > 0) {
|
|
|
+ if (now.compareTo(end) > 0 && this.status == 200) { // 过了截止时间未报价
|
|
|
return 1;
|
|
|
} else {
|
|
|
return 0;
|