yangys
2025-09-23 3baca21e0e6563f8379359ef2ba78c224eb4bc80
blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/entity/NcNode.java
@@ -43,7 +43,11 @@
   /**
    * 加工机床
    */
   public static final String TYPE_MACHINE_CODE = "50";
   //public static final String TYPE_MACHINE_CODE = "50";
   /**
    * 加工机床
    */
   public static final String TYPE_MACHINE_GROUP = "50";
   /**
    * 程序包名
    */
@@ -89,9 +93,9 @@
   private String machineCode;
   /**
    * 文件类型,只有
    * 机床组字典吗
    */
   //private String fileCategory;
   private String machineGroupCode;
   /**
    * 工序,如“精铣”
    */
@@ -152,6 +156,11 @@
    * 程序编号(程序包名节点需要)
    */
   private String programNo;
   /**
    * 历史序列号
    */
   private Long hisSerial;
   /**
    * 流程程序文件id,只有程序文件(70)类型的节点有此值
@@ -222,6 +231,15 @@
      this.isLocked = LOCKED;
   }
   /**
    * 锁定节点
    * @param remark 锁定原因
    */
   public void lock(String remark) {
      this.isLocked = LOCKED;
      this.remark = remark;
   }
   public void unlock() {
      this.isLocked = UNLOCK;
   }
@@ -233,4 +251,16 @@
    public boolean hasLocked() {
      return this.isLocked != null && this.isLocked == LOCKED;
    }
   public String subNodeParentIds(){
      return this.parentIds+","+this.getId();
   }
   /**
    * 组装程序名称
    * @return 程序名称
    */
   public String programName(){
      return this.drawingNo+"-"+this.getProcessNo()+"-"+this.getProcessEdition();
   }
}