Browse Source

modify:

1. 终止审批拒绝修改;
tags/24080901
WendyYang 5 months ago
parent
commit
fc063c4fab
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/helper/ProjectChangeStopHelper.java

+ 2
- 2
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/helper/ProjectChangeStopHelper.java View File

@@ -134,7 +134,7 @@ public class ProjectChangeStopHelper {
TenderStateChangeEvent tenderEvent) { TenderStateChangeEvent tenderEvent) {
if (projBeforeEvent != null) { if (projBeforeEvent != null) {
if (projEvent.equals(ProjectStateChangeEvent.STOPPED_APPLY_FAILED)) { if (projEvent.equals(ProjectStateChangeEvent.STOPPED_APPLY_FAILED)) {
project.setStoppedStatus(buildBizStatus(projBeforeEvent).getCode());
project.setStoppedStatus(buildBizStatus(projEvent).getCode());
} else { } else {
Wrapper<ProjectChangeHistory> changeHistoryWrapper = Wrappers.lambdaQuery(ProjectChangeHistory.class) Wrapper<ProjectChangeHistory> changeHistoryWrapper = Wrappers.lambdaQuery(ProjectChangeHistory.class)
.eq(ProjectChangeHistory::getProjectCode, project.getProjectCode()) .eq(ProjectChangeHistory::getProjectCode, project.getProjectCode())
@@ -158,7 +158,7 @@ public class ProjectChangeStopHelper {
.createOn(project.getCreateOn()) .createOn(project.getCreateOn())
.build()); .build());
project.setStatus(change.getBeforeStatus()); project.setStatus(change.getBeforeStatus());
project.setStage(project.getStatus() - project.getStatus() % 10000);
project.setStage(ProjectStatus.getNoNull(project.getStatus()).getStage().getCode());
projectService.updateById(project); projectService.updateById(project);
List<Purchase> purchases = purchaseService.listByProjectId(project.getId()); List<Purchase> purchases = purchaseService.listByProjectId(project.getId());
if (!purchases.isEmpty()) { if (!purchases.isEmpty()) {


Loading…
Cancel
Save