|
|
|
@ -6,6 +6,7 @@ import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.enums.WORK_STATUS;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.enums.WORK_TYPE;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EWork;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
|
import lombok.Data;
|
|
|
|
@ -106,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);
|
|
|
|
|
}
|
|
|
|
@ -115,35 +121,50 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<WorkInput> getWorkInputs() {
|
|
|
|
|
return BeanRelation.list(this, EWork.WorkInputs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<WorkOutput> getWorkOutputs() {
|
|
|
|
|
return BeanRelation.list(this, EWork.WorkOutputs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<WorkRelation> getWorkRelationInputs() {
|
|
|
|
|
return BeanRelation.list(this, EWork.WorkRelationInputs);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<WorkRelation> getWorkRelationOutputs() {
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|