完成插单功能

yun-zuoyi
钮海涛 4 years ago
parent be664bf464
commit 9f12a44fb6

@ -33,7 +33,7 @@ public class InsertedOrder extends BaseOrder {
@Column(name="ORDER_STATUS") @Column(name="ORDER_STATUS")
@ApiParam(value ="订单状态") @ApiParam(value ="订单状态")
@FieldAnnotation(defaultValue = "UNCOMMIT") @FieldAnnotation(defaultValue = "UNCOMMIT")
private ApsEnumUtil.INSERTED_ORDER_STATUS orderStatus; private ApsEnumUtil.INSERTED_ORDER_STATUS orderStatus = ApsEnumUtil.INSERTED_ORDER_STATUS.UNCOMMIT;
@Column(name="STAND_OPERATIONS") @Column(name="STAND_OPERATIONS")
@ApiParam("工序") @ApiParam("工序")
@ -44,6 +44,10 @@ public class InsertedOrder extends BaseOrder {
@FieldAnnotation(property = false) @FieldAnnotation(property = false)
private Long productRoutingId; private Long productRoutingId;
@Column(name="REMARK")
@ApiParam(value ="备注")
private String remark;
public ProductRouting getProductRouting() { public ProductRouting getProductRouting() {
return BeanRelation.get(this, EInsertedOrder.ProductRouting); return BeanRelation.get(this, EInsertedOrder.ProductRouting);
} }

@ -103,6 +103,11 @@ public class ProductOrder extends BaseOrder {
@FieldAnnotation(property = false) @FieldAnnotation(property = false)
private Long productRoutingId; private Long productRoutingId;
@Column(name="SRC_INSERTED_ORDER")
@ApiParam(value ="需求单为插单")
@FieldAnnotation(property = false)
private Long srcInsertedOrder;
public ProductRouting getProductRouting() { public ProductRouting getProductRouting() {
return BeanRelation.get(this, EProductOrder.ProductRouting); return BeanRelation.get(this, EProductOrder.ProductRouting);
} }

@ -13,6 +13,7 @@ import lombok.EqualsAndHashCode;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.validation.constraints.Min;
/** /**
* @Description : * @Description :
@ -89,6 +90,16 @@ public class WorkResource extends BaseAPS {
@FieldAnnotation(property = false) @FieldAnnotation(property = false)
private Long operResourceId; private Long operResourceId;
@Column(name="CAPACITY", columnDefinition = "decimal(18,8)")
@ApiParam(value ="容量限制")
@Min(0)
private Double capacity;
@Column(name="RES_CAPACITY_ID")
@ApiParam(value ="设备能力id")
@FieldAnnotation(property = false)
private Long resCapacityId = 0l;
public Work getWork() { public Work getWork() {
return BeanRelation.get(this, EWorkResource.Work); return BeanRelation.get(this, EWorkResource.Work);
} }

@ -406,11 +406,15 @@ public class ApsEnumUtil {
} }
} }
public interface IRESOURCE_RULE {
String getValue();
String getDescription();
}
/** /**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RESOURCE_CHOISE_RULE { public enum RESOURCE_CHOISE_RULE implements IRESOURCE_RULE {
PREV_SET_TIME("PREV_SET_TIME", "前设置时间"), PREV_SET_TIME("PREV_SET_TIME", "前设置时间"),
PRODUCE_TIME("PRODUCE_TIME", "生产时间"), PRODUCE_TIME("PRODUCE_TIME", "生产时间"),
POST_SET_TIME("POST_SET_TIME", "后设置时间"), POST_SET_TIME("POST_SET_TIME", "后设置时间"),
@ -433,10 +437,12 @@ public class ApsEnumUtil {
this.description = description; this.description = description;
} }
@Override
public String getValue() { public String getValue() {
return value; return value;
} }
@Override
public String getDescription() { public String getDescription() {
return description; return description;
} }

Loading…
Cancel
Save