yangys
2025-08-13 6de11904c373ded1f44f326382bb59d08b24c8d1
blade-service/blade-mdm/src/main/java/org/springblade/mdm/program/entity/NcNode.java
@@ -1,5 +1,6 @@
package org.springblade.mdm.program.entity;
import com.alibaba.excel.util.StringUtils;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
@@ -78,7 +79,6 @@
    */
   private String machineCode;
   /**
    * 文件类型,只有
    */
@@ -113,7 +113,7 @@
   /**
    * 是否固化
    */
   private Integer isCured;
   private Integer isCured = 0;
   /**
    * 过期日期
    */
@@ -153,7 +153,10 @@
    * 审批时的流程实例id,只有程序包节点有这个字段值
    */
   private String processInstanceId;
   /**
    * 偏离单号
    */
   private String deviation;
   /**
    * 版本号,更新一次(入升版,dnc导入),就会+1
    */
@@ -161,6 +164,13 @@
   transient FlowProgramFile flowProgramFile;
   /**
    * 是否是偏离程序
    * @return 是否偏离
    */
   public boolean isDeviationProgram(){
      return StringUtils.isNotBlank(this.deviation);
   }
   /**
    * 根据当前版本号,获取新增版本号
    * @return 升级后的版本号
@@ -191,4 +201,8 @@
   public boolean hasCured() {
      return this.isCured != null && this.isCured == 1;
   }
   public void upgradeVersionNUmber() {
      this.versionNumber = genNewVersionNumber();
   }
}