| | |
| | | package org.springblade.mdm.program.vo; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springblade.mdm.commons.vo.BaseVO; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Setter |
| | | @Getter |
| | | @EqualsAndHashCode |
| | | public class NcNodeVO extends BaseVO { |
| | | @Schema(description = "节点名称") |
| | | private String name; |
| | | @Schema(description = "父ID,根节点父id=0") |
| | | private Long parentId; |
| | | @Schema(description = "所有上级节点id") |
| | | private String parentIds; |
| | | @Schema(description = "设备编号") |
| | | private String machineCode; |
| | | @Schema(description = "节点类型,字典(程序节点类型nc_node_type)") |
| | |
| | | |
| | | @Schema(description = "工序,如“精铣”,程序文件节点的属性") |
| | | private String processName; |
| | | @Schema(description = "工序版本,程序文件节点的属性") |
| | | @Schema(description = "工序版本,程序包名节点的属性") |
| | | private String processEdition; |
| | | @Schema(description = "零组件号/图号,程序文件节点的属性") |
| | | private String drawingNo; |
| | | @Schema(description = "工序号") |
| | | private String processNo; |
| | | |
| | | @Schema(description = "版本号,程序文件节点的属性") |
| | | @Schema(description = "产品型号") |
| | | private String productModel; |
| | | @Schema(description = "零组件号/图号,程序包名节点的属性") |
| | | private String drawingNo; |
| | | @Schema(description = "图号版次") |
| | | private String drawingNoEdition; |
| | | |
| | | @Schema(description = "工艺版次") |
| | | private String craftEdition; |
| | | @Schema(description = "是否固化") |
| | | private Integer isCured; |
| | | @Schema(description = "是否最新版本") |
| | | private Integer isLastEdition; |
| | | |
| | | @Schema(description = "是否锁定") |
| | | private Integer isLocked = 0; |
| | | @Schema(description = "版本号,程序包名节点的属性") |
| | | private Integer versionNumber; |
| | | @Schema(description = "流程状态,程序包名节点的属性") |
| | | private Integer flowStatus; |
| | | @Schema(description = "子节点") |
| | | private List<NcNodeVO> children; |
| | | @Schema(description = "流程实例id,程序包节点有此属性") |
| | | private String processInstanceId; |
| | | @Schema(description = "任务车间") |
| | | private String workshop; |
| | | |
| | | public void addChildren(NcNodeVO node){ |
| | | if(children == null){ |
| | | children = new ArrayList<NcNodeVO>(); |
| | | } |
| | | if(!children.contains(node)){ |
| | | children.add(node); |
| | | } |
| | | } |
| | | } |