From 7cf3b454a20fa682f177ae672db66299615deec4 Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Thu, 4 May 2023 10:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B4=E5=BA=A6=E8=AE=A1=E5=88=92=E5=BA=93?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/projectlib/manage/AnnualPlanLibManage.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 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 3ef3a57..f070e07 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 @@ -315,23 +315,7 @@ public class AnnualPlanLibManage { BeanUtils.copyProperties(projectInfo,project); }else { // 新增的年度计划库项目 - log.info("项目库中不存在项目ID为:" + projectId + "的项目"); - Long userId = LoginUserUtil.getUserId(); - UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(userId); - - String regionCode = userFullInfo.getRegionCode(); - Integer regionLevel = userFullInfo.getRegionLevel(); - String regionName = regionCacheHelper.getRegionName(regionCode, regionLevel); - project.setAreaCode(regionCode); - project.setArea(regionName); - project.setStage(ProjectStatusEnum.NOT_APPROVED.getCode()); - project.setStatus(ProjectStatusEnum.IN_THE_ANNUAL_PLAN.getCode()); - project.setSponsor(userFullInfo.getEmployeeCode()); - project.setBuildOrgName(userFullInfo.getEmpPosUnitName()); - project.setResponsibleMan(userFullInfo.getRealName()); - project.setResponsibleManMobile(userFullInfo.getMobile()); - project.setContactName(userFullInfo.getRealName()); - project.setContactPhone(userFullInfo.getMobile()); + throw new BizException("项目库中不存在项目ID为:" + projectId + "的项目"); } project.setId(data.getProjectId()); project.setProjectName(data.getProjectName());