|
|
|
@ -107,6 +107,11 @@ public class Work extends BaseCode {
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long operationId;
|
|
|
|
|
|
|
|
|
|
@Column(name="PARENT_WORK_ID")
|
|
|
|
|
@ApiParam(value ="父工作")
|
|
|
|
|
@FieldAnnotation(property = false)
|
|
|
|
|
private Long parentWorkId;
|
|
|
|
|
|
|
|
|
|
public BaseOrder getOrder() {
|
|
|
|
|
return BeanRelation.get(this, EWork.Order);
|
|
|
|
|
}
|
|
|
|
@ -116,6 +121,24 @@ public class Work extends BaseCode {
|
|
|
|
|
BeanRelation.set(this, EWork.Order, order);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Operation getOperation() {
|
|
|
|
|
return BeanRelation.get(this, EWork.Operation);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOperation(Operation oper) {
|
|
|
|
|
this.operationId = oper != null ? oper.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWork.Operation, oper);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ParentWork getParentWork() {
|
|
|
|
|
return BeanRelation.get(this, EWork.ParentWork);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setParentWork(ParentWork parentWork) {
|
|
|
|
|
this.parentWorkId = parentWork != null ? parentWork.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWork.ParentWork, parentWork);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<WorkResource> getWorkResources() {
|
|
|
|
|
return BeanRelation.list(this, EWork.WorkResources);
|
|
|
|
@ -141,15 +164,6 @@ public class Work extends BaseCode {
|
|
|
|
|
return BeanRelation.list(this, EWork.WorkRelationOutputs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Operation getOperation() {
|
|
|
|
|
return BeanRelation.get(this, EWork.Operation);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOperation(Operation oper) {
|
|
|
|
|
this.operationId = oper != null ? oper.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EWork.Operation, oper);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<PlanFeedback> getPlanFeedbacks() {
|
|
|
|
|
return BeanRelation.list(this, EWork.PlanFeedbacks);
|
|
|
|
|