Browse Source

modify:

1. 增加是否允许重新提交变更字段;
tags/24101101
WendyYang 3 months ago
parent
commit
a9a11efb81
3 changed files with 8 additions and 0 deletions
  1. +4
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/model/entity/ProjectChangeHistory.java
  2. +1
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectChangeManage.java
  3. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/vo/ProjectChangeListVO.java

+ 4
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/model/entity/ProjectChangeHistory.java View File

@@ -2,6 +2,7 @@ package com.hz.pm.api.projectdeclared.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
@@ -43,4 +44,7 @@ public class ProjectChangeHistory implements Serializable {

private Integer status;

@ApiModelProperty("是否允许重新发起")
private Boolean canResubmit;

}

+ 1
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectChangeManage.java View File

@@ -176,6 +176,7 @@ public class ProjectChangeManage {
projectChangeHistory.setProjectId(project.getId());
projectChangeHistory.setProjectCode(project.getProjectCode());
projectChangeHistory.setStatus(ProjectChangeStatus.ON_CHANGE_APPLY.getCode());
projectChangeHistory.setCanResubmit(Boolean.TRUE);
projectChangeHistory.setInstCode(instId);
projectChangeHistory.setId(req.getId());
projectChangeHistoryService.saveOrUpdate(projectChangeHistory);


+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/vo/ProjectChangeListVO.java View File

@@ -62,4 +62,7 @@ public class ProjectChangeListVO {
@ApiModelProperty("流程实例ID")
private String instCode;

@ApiModelProperty("是否可重新提交")
private Boolean canResubmit;

}

Loading…
Cancel
Save