瀏覽代碼

modify:

1. 项目重新申请修改;
tags/24080901
WendyYang 3 月之前
父節點
當前提交
579915bc94
共有 4 個檔案被更改,包括 15 行新增14 行删除
  1. +5
    -6
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/ProjectStoppedChangeController.java
  2. +5
    -7
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectChangeManage.java
  3. +2
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectStoppedManage.java
  4. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/SubmitProjectChangeApplyReq.java

+ 5
- 6
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/controller/ProjectStoppedChangeController.java 查看文件

@@ -38,14 +38,14 @@ public class ProjectStoppedChangeController {
@PostMapping("/stopped/submitApply")
@ApiOperation("提交项目终止申请")
@WebLog("提交项目终止申请")
public void submitProjectStoppedApply(@RequestBody @Valid SubmitProjectStoppedApplyReq req) {
public void submitStoppedApply(@RequestBody @Valid SubmitProjectStoppedApplyReq req) {
projectStoppedManage.submitProjectStoppedApply(req);
}

@PostMapping("/change/submitApply")
@ApiOperation("提交项目变更申请")
@WebLog("提交项目变更申请")
public void submitProjectChangeApply(@RequestBody @Valid SubmitProjectChangeApplyReq req) {
public void submitChangeApply(@RequestBody @Valid SubmitProjectChangeApplyReq req) {
projectChangeManage.submitProjectChangeApply(req);
}

@@ -70,12 +70,11 @@ public class ProjectStoppedChangeController {
return projectChangeManage.page(req);
}

@GetMapping("/change/detail/{projectCode}/{instCode}")
@GetMapping("/change/detail/{id}")
@ApiOperation("项目变更详情")
@WebLog("项目变更详情")
public ProjectChangeDetailVO changeDetail(@PathVariable("projectCode") String projectCode,
@PathVariable("instCode") String instCode) {
return projectChangeManage.changeDetail(projectCode, instCode);
public ProjectChangeDetailVO changeDetail(@PathVariable("id") Long id) {
return projectChangeManage.changeDetail(id);
}

@GetMapping("/change/options")


+ 5
- 7
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectChangeManage.java 查看文件

@@ -134,7 +134,7 @@ public class ProjectChangeManage {
ProcessStartParamsVo params = new ProcessStartParamsVo();
params.setUser(declaredProjectHelper.buildUser(userDetail));
params.setProcessUsers(Collections.emptyMap());
params.setFormData(Collections.emptyMap());
params.setFormData(BeanUtil.beanToMap(req));

// 获取发起单位、发起单位主管单位、发起单位上级主管条线单位信息
Map<String, OrgInfoDTO> orgModelMap = declaredProjectHelper.buildOrgModelMap(userDetail, project);
@@ -154,7 +154,8 @@ public class ProjectChangeManage {
projectChangeHistory.setProjectCode(project.getProjectCode());
projectChangeHistory.setStatus(ProjectChangeStatus.ON_CHANGE_APPLY.getCode());
projectChangeHistory.setInstCode(instId);
projectChangeHistoryService.save(projectChangeHistory);
projectChangeHistory.setId(req.getId());
projectChangeHistoryService.saveOrUpdate(projectChangeHistory);
}

public PageVo<ProjectChangeListVO> page(ProjectListReq req) {
@@ -178,11 +179,8 @@ public class ProjectChangeManage {
return PageVo.of(data, page.getTotal());
}

public ProjectChangeDetailVO changeDetail(String projectCode, String instCode) {
LambdaQueryWrapper<ProjectChangeHistory> wrapper = Wrappers.lambdaQuery(ProjectChangeHistory.class)
.eq(ProjectChangeHistory::getProjectCode, projectCode)
.eq(ProjectChangeHistory::getInstCode, instCode);
ProjectChangeHistory changeHistory = projectChangeHistoryService.getOne(wrapper);
public ProjectChangeDetailVO changeDetail(Long id) {
ProjectChangeHistory changeHistory = projectChangeHistoryService.getById(id);
if (changeHistory == null) {
return null;
}


+ 2
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/ProjectStoppedManage.java 查看文件

@@ -1,5 +1,6 @@
package com.hz.pm.api.projectlib.manage;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -88,7 +89,7 @@ public class ProjectStoppedManage {
ProcessStartParamsVo params = new ProcessStartParamsVo();
params.setUser(declaredProjectHelper.buildUser(userDetail));
params.setProcessUsers(Collections.emptyMap());
params.setFormData(Collections.emptyMap());
params.setFormData(BeanUtil.beanToMap(req));

// 获取发起单位、发起单位主管单位、发起单位上级主管条线单位信息
Map<String, OrgInfoDTO> orgModelMap = declaredProjectHelper.buildOrgModelMap(userDetail, project);


+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/SubmitProjectChangeApplyReq.java 查看文件

@@ -15,6 +15,9 @@ import lombok.Data;
@Data
public class SubmitProjectChangeApplyReq {

@ApiModelProperty("变更ID")
private Long id;

@ApiModelProperty("变更原因")
private String changeReason;



Loading…
取消
儲存