From 65725463862de4875801560d45ef35dec454c9a4 Mon Sep 17 00:00:00 2001 From: WendyYang Date: Fri, 10 Mar 2023 14:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=8B=E9=A1=B9=E6=89=B9=E5=A4=8D=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/projectlib/manage/AnnualPlanLibManage.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java index c3ebe2c..645a3a9 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/AnnualPlanLibManage.java @@ -14,7 +14,6 @@ import com.ningdatech.basic.util.CollUtils; import com.ningdatech.basic.util.ValidUtil; import com.ningdatech.pmapi.common.constant.CommonConst; import com.ningdatech.pmapi.common.model.entity.ExcelExportWriter; -import com.ningdatech.pmapi.common.statemachine.event.ProjectStatusChangeEvent; import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils; import com.ningdatech.pmapi.common.util.ExcelDownUtil; import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum; @@ -82,7 +81,7 @@ public class AnnualPlanLibManage { public PageVo annulPlanLibList(ProjectListReq req) { LambdaQueryWrapper query = ProjectHelper.projectQuery(req); Integer isTemporaryAugment = req.getIsTemporaryAugment(); - if (Objects.isNull(isTemporaryAugment)){ + if (Objects.isNull(isTemporaryAugment)) { throw new BizException("请传入是否临时增补标志!"); } query.eq(Project::getIsTemporaryAugment, isTemporaryAugment); @@ -140,6 +139,8 @@ public class AnnualPlanLibManage { .set(Project::getBuildCycle, req.getBuildCycle()) .set(Project::getConstructionPlanFile, req.getBuildPlanFileId()) .set(Project::getApprovalDate, req.getApprovedDate()) + .set(Project::getStatus, project.getStatus()) + .set(Project::getStage, project.getStage()) .eq(Project::getId, req.getProjectId()); projectService.update(update); } @@ -223,7 +224,7 @@ public class AnnualPlanLibManage { param.setPageSize(CommonConst.EXPORT_PAGE_SIZE); LambdaQueryWrapper query = ProjectHelper.projectQuery(param); Integer isTemporaryAugment = param.getIsTemporaryAugment(); - if (Objects.isNull(isTemporaryAugment)){ + if (Objects.isNull(isTemporaryAugment)) { throw new BizException("请传入是否临时增补标志!"); } query.eq(Project::getIsTemporaryAugment, isTemporaryAugment); @@ -235,11 +236,11 @@ public class AnnualPlanLibManage { ExcelExportWriter excelExportWriter = new ExcelExportWriter(); Integer tableFlag = param.getTableFlag(); - if (Objects.isNull(tableFlag)){ + if (Objects.isNull(tableFlag)) { throw new BizException("请传入要导出的表格类型!"); } String fileName = null; - if (tableFlag == 0){ + if (tableFlag == 0) { fileName = "年度计划库编辑表"; } else if (tableFlag == 1) { fileName = "年度计划库列表";