|
|
|
@ -1,8 +1,12 @@
|
|
|
|
|
package cn.estsh.i3plus.pojo.aps.bean;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.enums.CONSTRAINT_TYPE;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.enums.WORK_RELATION_TYPE;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EWork;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EWorkRelation;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
|
import lombok.Data;
|
|
|
|
@ -50,4 +54,102 @@ public class WorkRelation extends BaseAPS {
|
|
|
|
|
@Column(name="FIX_COUNT")
|
|
|
|
|
@ApiParam(value ="是否固定数量")
|
|
|
|
|
private Boolean fixCount;
|
|
|
|
|
|
|
|
|
|
@Column(name="WORK_INPUT_ID")
|
|
|
|
|
@ApiParam(value ="工作输入")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long workInputId;
|
|
|
|
|
|
|
|
|
|
@Column(name="WORK_OUTPUT_ID")
|
|
|
|
|
@ApiParam(value ="工作输出")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long workOutputId;
|
|
|
|
|
|
|
|
|
|
@Column(name="PREV_WORK_ID")
|
|
|
|
|
@ApiParam(value ="前工作")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long prevWorkId;
|
|
|
|
|
|
|
|
|
|
@Column(name="POST_WORK_ID")
|
|
|
|
|
@ApiParam(value ="后工作")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long postWorkId;
|
|
|
|
|
|
|
|
|
|
@Column(name="PREV_ORDER_ID")
|
|
|
|
|
@ApiParam(value ="前订单")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long prevOrderId;
|
|
|
|
|
|
|
|
|
|
@Column(name="POST_ORDER_ID")
|
|
|
|
|
@ApiParam(value ="后订单")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long postOrderId;
|
|
|
|
|
|
|
|
|
|
@Column(name="MATERIAL_ID")
|
|
|
|
|
@ApiParam(value ="物料")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long materialId;
|
|
|
|
|
|
|
|
|
|
public WorkInput getWorkInput() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.WorkInput);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setWorkInput(WorkInput input) {
|
|
|
|
|
this.workInputId = input != null ? input.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.WorkInput, input);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public WorkOutput getWorkOutput() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.WorkOutput);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setWorkOutput(WorkOutput output) {
|
|
|
|
|
this.workOutputId = output != null ? output.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.WorkOutput, output);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Work getPrevWork() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PrevWork);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPrevWork(Work work) {
|
|
|
|
|
this.prevWorkId = work != null ? work.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PrevWork, work);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Work getPostWork() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PostWork);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPostWork(Work work) {
|
|
|
|
|
this.postWorkId = work != null ? work.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PostWork, work);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseOrder getPrevOrder() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PrevOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPrevOrder(BaseOrder order) {
|
|
|
|
|
this.prevOrderId = order != null ? order.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PrevOrder, order);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseOrder getPostOrder() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.PostOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPostOrder(BaseOrder order) {
|
|
|
|
|
this.postOrderId = order != null ? order.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.PostOrder, order);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Material getMaterial() {
|
|
|
|
|
return BeanRelation.get(this, EWorkRelation.Material);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMaterial(Material material) {
|
|
|
|
|
this.materialId = material != null ? material.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWorkRelation.Material, material);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|