|
|
|
@ -5,6 +5,7 @@ import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EWorkRelation;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
|
import lombok.Data;
|
|
|
|
@ -27,8 +28,8 @@ import javax.persistence.Table;
|
|
|
|
|
@Table(name = "APS_Work_Relation")
|
|
|
|
|
@Api("工作关联")
|
|
|
|
|
public class WorkRelation extends BaseAPS {
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -5824884364328962956L;
|
|
|
|
|
|
|
|
|
|
@Column(name="MATERIAL_ID")
|
|
|
|
|
@ApiParam(value ="物料")
|
|
|
|
|
@FieldAnnotation(relation = "Material", modify = false)
|
|
|
|
@ -97,6 +98,7 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long workOutputId;
|
|
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
public WorkInput getWorkInput() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.WorkInput);
|
|
|
|
|
}
|
|
|
|
@ -106,6 +108,7 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.WorkInput, input);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
public WorkOutput getWorkOutput() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.WorkOutput);
|
|
|
|
|
}
|
|
|
|
@ -115,6 +118,7 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.WorkOutput, output);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
public Work getPrevWork() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PrevWork);
|
|
|
|
|
}
|
|
|
|
@ -124,6 +128,7 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PrevWork, work);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
public Work getPostWork() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PostWork);
|
|
|
|
|
}
|
|
|
|
@ -133,6 +138,7 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PostWork, work);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
public BaseOrder getPrevOrder() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PrevOrder);
|
|
|
|
|
}
|
|
|
|
@ -142,6 +148,7 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PrevOrder, order);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
public BaseOrder getPostOrder() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PostOrder);
|
|
|
|
|
}
|
|
|
|
@ -151,6 +158,7 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PostOrder, order);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
public Material getMaterial() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.Material);
|
|
|
|
|
}
|
|
|
|
|