演示问题修复

yun-zuoyi
钮海涛 4 years ago
parent 95dffb65e0
commit 63a8aef96d

@ -97,12 +97,17 @@ public class BaseOrder extends BaseAPS {
@Column(name="VALID_ORDER") @Column(name="VALID_ORDER")
@ApiParam(value ="有效订单") @ApiParam(value ="有效订单")
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
private ApsEnumUtil.ORDER_VALID_TYPE validOrder = ApsEnumUtil.ORDER_VALID_TYPE.VALID; private Boolean validOrder = true;
@Column(name="DELAY") @Column(name="INVALID_REASON")
@ApiParam(value ="是否延期") @ApiParam(value ="无效原因")
@FieldAnnotation(modify = false) @FieldAnnotation(modify = false)
private Boolean delay = false; private String invalidReason;
@Column(name="DELAY_TIME")
@ApiParam(value ="延期时间")
@FieldAnnotation(modify = false)
private Integer delayTime;
@JsonBackReference @JsonBackReference
public List<Work> getWorks() { public List<Work> getWorks() {

@ -27,7 +27,7 @@ public class FieldSetRule extends BaseRule {
private static final long serialVersionUID = 6880145972942618559L; private static final long serialVersionUID = 6880145972942618559L;
@Column(name="BEAN") @Column(name="BEAN")
@ApiParam(value ="实体名") @ApiParam(value ="实体名")
private ApsEnumUtil.FIELD_SET_BEAN bean; private String bean;
@Column(name="FILTER") @Column(name="FILTER")
@ApiParam(value ="筛选") @ApiParam(value ="筛选")

@ -29,6 +29,10 @@ public class MatCalcRule extends BaseRule {
@ApiParam(value ="物料筛选") @ApiParam(value ="物料筛选")
private String materialFilter; private String materialFilter;
@Column(name="ROUTING_FILTER")
@ApiParam(value ="工艺路线筛选")
private String routingFilter;
@Column(name="INPUT_FILTER") @Column(name="INPUT_FILTER")
@ApiParam(value ="输入筛选") @ApiParam(value ="输入筛选")
private String inputFilter; private String inputFilter;

@ -90,10 +90,6 @@ public class Operation extends BaseAPS {
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION) @FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.DURATION)
private String minSpaceTime; private String minSpaceTime;
@Column(name="MANU_OPER")
@ApiParam(value ="是否手工工序")
private Boolean manuOper;
public ProductRouting getProductRouting() { public ProductRouting getProductRouting() {
return BeanRelation.get(this, EOperation.ProductRouting); return BeanRelation.get(this, EOperation.ProductRouting);
} }

@ -61,6 +61,10 @@ public class SalesOrder extends BaseOrder {
@FieldAnnotation(defaultValue = "WAITING") @FieldAnnotation(defaultValue = "WAITING")
private ApsEnumUtil.SALES_ORDER_STATUS orderStatus; private ApsEnumUtil.SALES_ORDER_STATUS orderStatus;
@Column(name="DELIVER_RATE")
@ApiParam(value ="发货百分比")
private Double deliverRate;
@JsonIgnore @JsonIgnore
public Work getWork() { public Work getWork() {
return BeanRelation.get(this, EBaseOrder.Works); return BeanRelation.get(this, EBaseOrder.Works);

@ -45,4 +45,8 @@ public class SysParam extends BaseAPS {
@ApiParam(value ="规则组id") @ApiParam(value ="规则组id")
@FieldAnnotation(display = false) @FieldAnnotation(display = false)
private Long ruleGroupId; private Long ruleGroupId;
@Column(name="INVENTORY_RATE")
@ApiParam(value ="库存误差百分比")
private Double inventoryRate;
} }

@ -164,6 +164,8 @@ public class Work extends BaseAPS {
@FieldAnnotation(property = false) @FieldAnnotation(property = false)
private Long dynSplitWorkId; private Long dynSplitWorkId;
private transient boolean hasOptimized = false;
public BaseOrder getOrder() { public BaseOrder getOrder() {
return BeanRelation.get(this, EWork.Order); return BeanRelation.get(this, EWork.Order);
} }

@ -0,0 +1,34 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.bean.FurnacePlan;
import cn.estsh.i3plus.pojo.aps.bean.Resource;
import cn.estsh.i3plus.pojo.aps.bean.WorkPlan;
import lombok.Data;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2021-04-15
* @Modify:
**/
@Data
public class PlanRecord {
/**
*
*/
private WorkPlan plan;
/**
*
*/
private Resource resource;
/**
*
*/
private WorkPlan postPlan;
/**
*
*/
private FurnacePlan furnacePlan;
}

@ -0,0 +1,22 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.aps.bean.Work;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2021-04-15
* @Modify:
**/
@Data
public class WorkRecord {
private Work work;
private Work splitWork;
private PlanRecord mainPlan;
private List<PlanRecord> assPlans = new ArrayList<>();
}

@ -741,8 +741,8 @@ public class ApsEnumUtil {
public enum WORK_STATUS { public enum WORK_STATUS {
NOPLAN("NOPLAN", "未计划"), NOPLAN("NOPLAN", "未计划"),
PLANDONE("PLANDONE", "计划完毕"), PLANDONE("PLANDONE", "计划完毕"),
INDICATIONDONE("INDICATIONDONE", "指示完毕"), INDICATIONDONE("INDICATIONDONE", "锁定"),
CONFIRM("CONFIRM", "确认"), CONFIRM("CONFIRM", "下发"),
STARTPRODUCT("STARTPRODUCT", "开始生产"), STARTPRODUCT("STARTPRODUCT", "开始生产"),
FINISH("FINISH", "完成"); FINISH("FINISH", "完成");

Loading…
Cancel
Save