|
@@ -21,6 +21,7 @@ import javax.persistence.Table;
|
|
|
import org.codehaus.jackson.annotate.JsonIgnore;
|
|
import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.annotation.JSONField;
|
|
|
import com.uas.platform.core.model.Constant;
|
|
import com.uas.platform.core.model.Constant;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -28,7 +29,7 @@ import com.uas.platform.core.model.Constant;
|
|
|
* 级联变更明细
|
|
* 级联变更明细
|
|
|
*
|
|
*
|
|
|
* @author yingp
|
|
* @author yingp
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
*/
|
|
*/
|
|
|
@Table(name = "purc$changes")
|
|
@Table(name = "purc$changes")
|
|
|
@Entity
|
|
@Entity
|
|
@@ -148,7 +149,8 @@ public class PurchaseOrderChange implements Serializable {
|
|
|
/**
|
|
/**
|
|
|
* 采购变更单明细
|
|
* 采购变更单明细
|
|
|
*/
|
|
*/
|
|
|
- @OneToMany(mappedBy = "orderChange", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }, fetch = FetchType.EAGER)
|
|
|
|
|
|
|
+ @OneToMany(mappedBy = "orderChange", cascade = { CascadeType.REFRESH, CascadeType.PERSIST, CascadeType.REMOVE,
|
|
|
|
|
+ CascadeType.MERGE }, fetch = FetchType.EAGER)
|
|
|
@OrderBy("number")
|
|
@OrderBy("number")
|
|
|
private Set<PurchaseOrderChangeItem> orderChangeItems;
|
|
private Set<PurchaseOrderChangeItem> orderChangeItems;
|
|
|
|
|
|
|
@@ -305,6 +307,7 @@ public class PurchaseOrderChange implements Serializable {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
|
|
|
+ @JSONField(serialize = false)
|
|
|
public boolean isAgreed() {
|
|
public boolean isAgreed() {
|
|
|
return this.agreed != null && Constant.YES == this.agreed;
|
|
return this.agreed != null && Constant.YES == this.agreed;
|
|
|
}
|
|
}
|