|
|
@@ -2,6 +2,7 @@ package com.uas.platform.b2c.trade.order.model;
|
|
|
|
|
|
import com.uas.platform.b2c.core.utils.DateFormatUtils;
|
|
|
import com.uas.platform.b2c.core.utils.DoubleArith;
|
|
|
+import com.uas.platform.b2c.fa.payment.model.Installment;
|
|
|
import com.uas.platform.b2c.trade.aftersale.model.AfterSaleStatus;
|
|
|
import com.uas.platform.core.exception.IllegalStatusException;
|
|
|
import com.uas.platform.core.model.Status;
|
|
|
@@ -9,20 +10,7 @@ import com.uas.platform.core.persistence.StatusColumn;
|
|
|
import org.hibernate.annotations.Cache;
|
|
|
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
|
|
|
|
-import javax.persistence.CascadeType;
|
|
|
-import javax.persistence.Column;
|
|
|
-import javax.persistence.Entity;
|
|
|
-import javax.persistence.EnumType;
|
|
|
-import javax.persistence.Enumerated;
|
|
|
-import javax.persistence.FetchType;
|
|
|
-import javax.persistence.GeneratedValue;
|
|
|
-import javax.persistence.GenerationType;
|
|
|
-import javax.persistence.Id;
|
|
|
-import javax.persistence.OneToMany;
|
|
|
-import javax.persistence.OrderBy;
|
|
|
-import javax.persistence.SequenceGenerator;
|
|
|
-import javax.persistence.Table;
|
|
|
-import javax.persistence.Transient;
|
|
|
+import javax.persistence.*;
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashSet;
|
|
|
@@ -498,6 +486,18 @@ public class Purchase extends Document implements Serializable {
|
|
|
@Column(name = "in_sd_addr", length = 2000)
|
|
|
private String jsonSdAddress;
|
|
|
|
|
|
+ /**
|
|
|
+ * 分期信息id
|
|
|
+ */
|
|
|
+ @Column(name = "pu_installmentid")
|
|
|
+ private Long installmentId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分期信息(不做关联)
|
|
|
+ */
|
|
|
+ @Transient
|
|
|
+ private Installment installment;
|
|
|
+
|
|
|
/** 异常相关字段end
|
|
|
*******************************************************************************/
|
|
|
|
|
|
@@ -2104,6 +2104,22 @@ public class Purchase extends Document implements Serializable {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ public Long getInstallmentId() {
|
|
|
+ return installmentId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInstallmentId(Long installmentId) {
|
|
|
+ this.installmentId = installmentId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Installment getInstallment() {
|
|
|
+ return installment;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInstallment(Installment installment) {
|
|
|
+ this.installment = installment;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 采购单的退货状态
|
|
|
*/
|