|
|
|
@ -5,6 +5,7 @@ import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.annotation.RippleAnnotation;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EBaseOrder;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.holders.EMaterial;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
|
|
|
|
|
import cn.estsh.i3plus.pojo.aps.validator.UpdateGroup;
|
|
|
|
@ -60,6 +61,11 @@ public class Material extends BaseAPS {
|
|
|
|
|
@FieldAnnotation(defaultValue = "ONEBYONE")
|
|
|
|
|
private ApsEnumUtil.REPLENISHMENT_TYPE replType;
|
|
|
|
|
|
|
|
|
|
@Column(name="GROUP_ID")
|
|
|
|
|
@ApiParam(value ="物料组")
|
|
|
|
|
@FieldAnnotation(relation = "Material")
|
|
|
|
|
private Long groupId;
|
|
|
|
|
|
|
|
|
|
@Column(name="PURCHASE_LEAD_TIME")
|
|
|
|
|
@ApiParam(value ="采购提前期")
|
|
|
|
|
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
|
|
|
|
@ -151,6 +157,18 @@ public class Material extends BaseAPS {
|
|
|
|
|
@ApiParam(value ="标签颜色")
|
|
|
|
|
private String labelColor;
|
|
|
|
|
|
|
|
|
|
public Material getGroup() {
|
|
|
|
|
return BeanRelation.get(this, EMaterial.Group);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setGroup(Material material) {
|
|
|
|
|
this.groupId = material != null ? material.getId() : 0l;
|
|
|
|
|
BeanRelation.set(this, EMaterial.Group, material);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<Material> getChilds() { return BeanRelation.list(this, EMaterial.Childs); }
|
|
|
|
|
|
|
|
|
|
@JsonBackReference
|
|
|
|
|
public List<ProductRouting> getProductRoutings() {
|
|
|
|
|
return BeanRelation.list(this, EMaterial.ProductRoutings);
|
|
|
|
|