From 884575e63ef9c6ff8bc274d9faf7ba2295b023b8 Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Fri, 28 Apr 2023 15:11:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B9=B4=E5=BA=A6=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=BA=93=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 --- .../projectlib/manage/AnnualPlanLibManage.java | 27 ++++++++++++++++++++++ .../pmapi/user/manage/UserAuthLoginManage.java | 1 + .../user/security/auth/model/UserFullInfoDTO.java | 5 ++++ 3 files changed, 33 insertions(+) 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 6dbe71e..3ef3a57 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 @@ -19,6 +19,7 @@ import com.ningdatech.basic.util.CollUtils; import com.ningdatech.basic.util.StrPool; import com.ningdatech.pmapi.common.constant.CommonConst; import com.ningdatech.pmapi.common.enumeration.CommonEnum; +import com.ningdatech.pmapi.common.helper.RegionCacheHelper; import com.ningdatech.pmapi.common.helper.UserInfoHelper; import com.ningdatech.pmapi.common.model.entity.ExcelExportWriter; import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils; @@ -89,6 +90,7 @@ public class AnnualPlanLibManage { private final INdProjectStatusChangeService statusChangeService; private final UserInfoHelper userInfoHelper; private final IProjectRenewalFundDeclarationService projectRenewalFundDeclarationService; + private final RegionCacheHelper regionCacheHelper; /** * 年度计划查询状态 @@ -306,6 +308,31 @@ public class AnnualPlanLibManage { } private void assemblyProjectInfo(AnnualLibImportDTO data, Project project) { + Long projectId = data.getProjectId(); + // 从项目库中先查询出对应的项目ID的项目 + Project projectInfo = projectService.getById(projectId); + if (Objects.nonNull(projectInfo)){ + 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()); + } project.setId(data.getProjectId()); project.setProjectName(data.getProjectName()); project.setProjectIntroduction(data.getProjectIntroduction()); diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthLoginManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthLoginManage.java index 1dd3e35..50a4ce3 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthLoginManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserAuthLoginManage.java @@ -173,6 +173,7 @@ public class UserAuthLoginManage { userFullInfoDTO.setRealName(userInfo.getRealName()); userFullInfoDTO.setEmployeeCode(employeeCode); userFullInfoDTO.setUsername(userInfo.getRealName()); + userFullInfoDTO.setMobile(userInfo.getMobile()); } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/model/UserFullInfoDTO.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/model/UserFullInfoDTO.java index d26d63e..5482f45 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/model/UserFullInfoDTO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/model/UserFullInfoDTO.java @@ -47,6 +47,11 @@ public class UserFullInfoDTO { private String organizationCode; /** + * 手机号码 + */ + private String mobile; + + /** * 浙政钉组织名称 */ private String organizationName; From 753a99029313717a8ea4f2280479f82015926e0a Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Fri, 28 Apr 2023 17:59:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B9=B4=E5=BA=A6=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=BA=93=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 --- ...年数字化项目年度计划编辑表(空).xls | Bin 30208 -> 31744 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pmapi/src/main/resources/template/丽水市2023年数字化项目年度计划编辑表(空).xls b/pmapi/src/main/resources/template/丽水市2023年数字化项目年度计划编辑表(空).xls index 7317bace7a0f7c1d913ad7c9c7d5d9241642e1e4..c43cd89b239fcbac80f1cbe602ba41fae700fcfb 100644 GIT binary patch delta 3052 zcmcgue^8s{9sfQrNk~Eh3BM8&uwX4v6q1Ugt%V&^|FGK(4MBlM0)hz$Yu6tVNvTb! zsa;Kxut$5eUQgT8o_EeW+)-hID$^S-6& z+@E{jdz0t${r&5C-zWBW7Q4!l&8+E-mIcPPaINr8RU-i0h0nL}`L`rV^lZZQW_<3( zr&;_+u(2O&eqgACCyU>V{E2Pkqnf9Ldk4j9nq4MtwAuNvwSmuC`*>}kn{PurYc1r% zg(*H?Wak#UT}&3ab66Rlu)4(M(%&#P&ClCy>hC4Ht!$b(0LIWAUBZ0j$50HpxSZw{ zW&fRPNOK=ZbDaQPq=;8W*NDq${-mnQSSz$B5rt_8W3N>q6$H_d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