减少四车间硫化换模次数

yun-zuoyi
钮海涛 4 years ago
parent eb7e63ffec
commit bcd683c684

@ -139,21 +139,21 @@ public class WorkPlan extends BaseAPS {
public Work getWork() { return BeanRelation.get(this, EWorkPlan.Work); }
public void setWork(Work work) {
this.workId = work != null ? work.getId() : 0l;
this.workId = work != null ? work.getId() : 0L;
BeanRelation.set(this, EWorkPlan.Work, work);
}
public Resource getResource() { return BeanRelation.get(this, EWorkPlan.Resource); }
public void setResource(Resource resource) {
this.resourceId = resource != null ? resource.getId() : 0l;
this.resourceId = resource != null ? resource.getId() : 0L;
BeanRelation.set(this, EWorkPlan.Resource, resource);
}
public WorkResource getWorkResource() { return BeanRelation.get(this, EWorkPlan.WorkResource); }
public void setWorkResource(WorkResource workResource) {
this.workResourceId = workResource != null ? workResource.getId() : 0l;
this.workResourceId = workResource != null ? workResource.getId() : 0L;
BeanRelation.set(this, EWorkPlan.WorkResource, workResource);
}

@ -31,14 +31,13 @@ public abstract class BaseAPS extends BaseBean {
@FieldAnnotation(property = false)
private HashMap<String, Object> customFields = new HashMap<>();
@Column(name="KEY")
@ApiParam(value ="主键值")
@FieldAnnotation(display = false, modify = false)
@Transient
private String key;
@FieldAnnotation(property = false)
private transient Long updateId = 0l;
private transient Long updateId = 0L;
public Object getCustomField(String code) {
return customFields.get(code);

Loading…
Cancel
Save