package com.chinaztt.mes.technology.dto;
|
|
import com.chinaztt.mes.technology.entity.RoutingOperation;
|
import com.chinaztt.mes.technology.entity.RoutingOperationParam;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
|
/**
|
* @Author: zhangxy
|
* @Date: 2020-08-26 15:37
|
*/
|
@Data
|
public class RoutingOperationDTO extends RoutingOperation implements Comparable {
|
/**
|
* 工序参数
|
*/
|
private List<RoutingOperationParam> routingOperationParam;
|
/**
|
* 顺序
|
*/
|
private Integer index;
|
/**
|
* 前端gojs 节点key
|
*/
|
private Integer key;
|
/**
|
* 工序编号
|
*/
|
private String operationNo;
|
/**
|
* 工序名
|
*/
|
private String operationName;
|
/**
|
* 零件名称
|
*/
|
private String partName;
|
/**
|
* 零件单位
|
*/
|
private String unit;
|
/**
|
* 是否生成批次号
|
*/
|
private Boolean isGenerateSn;
|
/**
|
* 工序生产长度
|
*/
|
private BigDecimal operationProduceQty;
|
|
/**
|
* 自定义排序
|
*
|
* @param o
|
* @return
|
*/
|
@Override
|
public int compareTo(Object o) {
|
return this.index.compareTo(((RoutingOperationDTO) o).index);
|
}
|
}
|