|
|
|
@ -36,12 +36,12 @@ import java.util.List;
|
|
|
|
|
public class Work extends BaseAPS {
|
|
|
|
|
@Column(name="CODE")
|
|
|
|
|
@ApiParam(value ="编码")
|
|
|
|
|
@FieldAnnotation(popSearch = true, mainkey = true)
|
|
|
|
|
@FieldAnnotation(popSearch = true, mainkey = true, modify = false)
|
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
|
|
@Column(name="ORDER_ID")
|
|
|
|
|
@ApiParam(value ="订单")
|
|
|
|
|
@FieldAnnotation(relation = "Order")
|
|
|
|
|
@FieldAnnotation(relation = "Order", modify = false)
|
|
|
|
|
private Long orderId;
|
|
|
|
|
|
|
|
|
|
@Column(name="WORK_TYPE")
|
|
|
|
@ -77,9 +77,10 @@ public class Work extends BaseAPS {
|
|
|
|
|
@ApiParam(value ="指定数量")
|
|
|
|
|
private Double specifyCount;
|
|
|
|
|
|
|
|
|
|
@Column(name="SPECIFY_RESOURCE")
|
|
|
|
|
@ApiParam(value ="指定资源")
|
|
|
|
|
private String specifyResource;
|
|
|
|
|
@Column(name="SPECIFY_RESOURCE_ID")
|
|
|
|
|
@ApiParam(value ="指定主资源")
|
|
|
|
|
@FieldAnnotation(relation = "SpecifyResource")
|
|
|
|
|
private Long specifyResourceId;
|
|
|
|
|
|
|
|
|
|
@Column(name="SPECIFY_PRODUCE_TIME")
|
|
|
|
|
@ApiParam(value ="指定制造时间")
|
|
|
|
@ -223,4 +224,13 @@ public class Work extends BaseAPS {
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<WorkPlan> getWorkPlans() { return BeanRelation.list(this, EWork.WorkPlans); }
|
|
|
|
|
|
|
|
|
|
public Resource getSpecifyResource() {
|
|
|
|
|
return BeanRelation.get(this, EWork.SpecifyResource);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSpecifyResource(Resource resource) {
|
|
|
|
|
this.specifyResourceId = resource != null ? resource.getId() : 0;
|
|
|
|
|
BeanRelation.set(this, EWork.SpecifyResource, resource);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|