|
|
@@ -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()); |
|
|
|