|
|
|
@ -152,6 +152,11 @@ public class Work extends BaseAPS {
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long operationId;
|
|
|
|
|
|
|
|
|
|
@Column(name="ORIGIN_OPERATION_ID")
|
|
|
|
|
@ApiParam(value ="原始工序")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long originOperationId;
|
|
|
|
|
|
|
|
|
|
@Column(name="PARENT_WORK_ID")
|
|
|
|
|
@ApiParam(value ="父工作")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
@ -200,6 +205,15 @@ public class Work extends BaseAPS {
|
|
|
|
|
BeanRelation.set(this, EWork.Operation, oper);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Operation getOriginOperation() {
|
|
|
|
|
return BeanRelation.get(this, EWork.OriginOperation);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOriginOperation(Operation oper) {
|
|
|
|
|
this.originOperationId = oper != null ? oper.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWork.OriginOperation, oper);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ParentWork getParentWork() {
|
|
|
|
|
return BeanRelation.get(this, EWork.ParentWork);
|
|
|
|
|
}
|
|
|
|
|