diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java index fb8b8b8..c7f37cd 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java @@ -47,7 +47,6 @@ import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum; import com.ningdatech.pmapi.projectlib.manage.ProjectLibManage; import com.ningdatech.pmapi.projectlib.model.entity.Project; import com.ningdatech.pmapi.projectlib.model.entity.ProjectApplication; -import com.ningdatech.pmapi.projectlib.model.entity.ProjectDelayApply; import com.ningdatech.pmapi.projectlib.model.entity.ProjectInst; import com.ningdatech.pmapi.projectlib.model.vo.ProjectDetailVO; import com.ningdatech.pmapi.projectlib.service.IProjectApplicationService; @@ -55,7 +54,7 @@ import com.ningdatech.pmapi.projectlib.service.IProjectInstService; import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.sys.manage.NoticeManage; -import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; +import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant; import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.bean.entity.WflowModels; @@ -285,7 +284,7 @@ public class ProjectFileManage { projectLibManage.saveProjectByApplyBorrow(project, user, instanceId); // 发送给第一个审批人消息 - noticeManage.sendFirtUser(project, model.getFormName(), instanceId, WorkNoticeContant.PASS_MSG_TEMPLATE, + noticeManage.sendFirtUser(project, model.getFormName(), instanceId, WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/ConstructionPlanController.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/ConstructionPlanController.java index 5779ac6..25cbdd1 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/ConstructionPlanController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/ConstructionPlanController.java @@ -46,6 +46,8 @@ public class ConstructionPlanController { return "建设方案申报 【" + instanceId + "】 成功"; } + + @GetMapping("/export") @ApiOperation("可申报建设方案项目列表导出") @WebLog("可申报建设方案项目列表导出") diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionPlanManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionPlanManage.java index cfe790e..a4f9bbb 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionPlanManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionPlanManage.java @@ -31,7 +31,7 @@ import com.ningdatech.pmapi.projectlib.service.IProjectInstService; import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.sys.manage.NoticeManage; -import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; +import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant; import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.bean.entity.WflowModels; @@ -156,7 +156,7 @@ public class ConstructionPlanManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(projectInfo,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java index 497dfa8..fe7bea6 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java @@ -23,7 +23,6 @@ import com.ningdatech.pmapi.projectdeclared.model.dto.*; import com.ningdatech.pmapi.projectdeclared.model.entity.ProjectDraft; import com.ningdatech.pmapi.projectdeclared.model.vo.ProjectDraftVO; import com.ningdatech.pmapi.projectdeclared.service.IProjectDraftService; -import com.ningdatech.pmapi.projectdeclared.utils.GenerateProjectCodeUtil; import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum; import com.ningdatech.pmapi.projectlib.enumeration.ProjectTypeEnum; import com.ningdatech.pmapi.projectlib.helper.ProjectHelper; @@ -31,15 +30,12 @@ import com.ningdatech.pmapi.projectlib.manage.ProjectLibManage; import com.ningdatech.pmapi.projectlib.model.dto.ProjectDTO; import com.ningdatech.pmapi.projectlib.model.entity.Project; import com.ningdatech.pmapi.projectlib.model.entity.ProjectApplication; -import com.ningdatech.pmapi.projectlib.model.entity.ProjectInst; import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; import com.ningdatech.pmapi.projectlib.model.vo.ProjectLibListItemVO; -import com.ningdatech.pmapi.projectlib.service.IProjectApplicationService; -import com.ningdatech.pmapi.projectlib.service.IProjectInstService; import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.sys.manage.NoticeManage; -import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; +import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant; import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.bean.entity.WflowModels; @@ -171,7 +167,7 @@ public class DeclaredProjectManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(buildProject,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; } @@ -252,7 +248,7 @@ public class DeclaredProjectManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(buildProject,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java index d726b54..956116a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java @@ -2,10 +2,7 @@ package com.ningdatech.pmapi.projectdeclared.manage; import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.date.DatePattern; import com.alibaba.excel.EasyExcel; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.TypeReference; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -17,22 +14,16 @@ import com.ningdatech.basic.util.NdDateUtils; import com.ningdatech.pmapi.common.constant.BizConst; import com.ningdatech.pmapi.common.enumeration.ProjectProcessStageEnum; import com.ningdatech.pmapi.common.helper.UserInfoHelper; -import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils; import com.ningdatech.pmapi.common.util.ExcelDownUtil; import com.ningdatech.pmapi.common.util.ExcelExportStyle; import com.ningdatech.pmapi.projectdeclared.model.dto.DeclaredProjectExportDTO; import com.ningdatech.pmapi.projectdeclared.model.dto.DelayedApplyDTO; -import com.ningdatech.pmapi.projectdeclared.model.dto.ProjectConditionDTO; -import com.ningdatech.pmapi.projectdeclared.model.entity.Contract; -import com.ningdatech.pmapi.projectdeclared.model.entity.PaymentPlan; -import com.ningdatech.pmapi.projectdeclared.model.entity.Purchase; import com.ningdatech.pmapi.projectdeclared.model.vo.DelayedApplyVO; import com.ningdatech.pmapi.projectlib.enumeration.InstTypeEnum; import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum; import com.ningdatech.pmapi.projectlib.enumeration.ProjectTypeEnum; import com.ningdatech.pmapi.projectlib.helper.ProjectHelper; import com.ningdatech.pmapi.projectlib.manage.ProjectLibManage; -import com.ningdatech.pmapi.projectlib.model.dto.ProjectDTO; import com.ningdatech.pmapi.projectlib.model.entity.Project; import com.ningdatech.pmapi.projectlib.model.entity.ProjectDelayApply; import com.ningdatech.pmapi.projectlib.model.entity.ProjectInst; @@ -43,7 +34,7 @@ import com.ningdatech.pmapi.projectlib.service.IProjectInstService; import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.sys.manage.NoticeManage; -import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; +import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant; import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.bean.entity.WflowModels; @@ -292,7 +283,7 @@ public class DelayedApplyManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(project,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/FinalAcceptanceManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/FinalAcceptanceManage.java index aead8bb..d2e15d5 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/FinalAcceptanceManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/FinalAcceptanceManage.java @@ -30,7 +30,7 @@ import com.ningdatech.pmapi.projectlib.model.vo.ProjectLibListItemVO; import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.sys.manage.NoticeManage; -import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; +import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant; import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.bean.entity.WflowModels; @@ -242,7 +242,7 @@ public class FinalAcceptanceManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(projectInfo,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; } @@ -302,7 +302,7 @@ public class FinalAcceptanceManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(projectInfo,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java index 121e7d8..686c92e 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/PrequalificationDeclaredProjectManage.java @@ -32,8 +32,8 @@ import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.staging.service.IProjectStagingService; import com.ningdatech.pmapi.sys.manage.NoticeManage; -import com.ningdatech.pmapi.todocenter.constant.TodoCenterContant; -import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; +import com.ningdatech.pmapi.todocenter.constant.TodoCenterConstant; +import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant; import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.bean.entity.WflowModels; @@ -127,7 +127,7 @@ public class PrequalificationDeclaredProjectManage { //保存一下 当前的主管单位发起人 projectInfo.setPreStartUserId(employeeCode); //当前实例置为空 - projectInfo.setInstCode(TodoCenterContant.Declared.NULL_INST_CODE); + projectInfo.setInstCode(TodoCenterConstant.Declared.NULL_INST_CODE); if(projectStagingService.addByProject(projectInfo,"省级部门联审") && projectService.updateById(projectInfo)){ return "提交省级部门联审成功"; @@ -208,7 +208,7 @@ public class PrequalificationDeclaredProjectManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(projectInfo,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return instanceId; } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java index 765e07d..c318a54 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByDeptJointManage.java @@ -12,7 +12,7 @@ import com.ningdatech.pmapi.projectlib.service.IProjectInstService; import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.staging.enums.MsgTypeEnum; import com.ningdatech.pmapi.sys.manage.NoticeManage; -import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant; +import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant; import com.wflow.bean.entity.WflowModels; import com.wflow.exception.BusinessException; import com.wflow.workflow.bean.dto.OrgInfoDTO; @@ -108,7 +108,7 @@ public class ReviewByDeptJointManage { //发送给第一个审批人消息 noticeManage.sendFirtUser(projectInfo,model.getFormName(),instanceId, - WorkNoticeContant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); + WorkNoticeConstant.PASS_MSG_TEMPLATE, MsgTypeEnum.PROJECT_REVIEW); return Boolean.TRUE; } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java index 7083e68..b7f0271 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewByProvincialDeptManage.java @@ -14,7 +14,7 @@ import com.ningdatech.pmapi.projectlib.service.IProjectApplicationService; import com.ningdatech.pmapi.projectlib.service.IProjectService; import com.ningdatech.pmapi.provincial.service.IJoinReviewProvincialBureauService; import com.ningdatech.pmapi.staging.service.IProjectStagingService; -import com.ningdatech.pmapi.todocenter.constant.TodoCenterContant; +import com.ningdatech.pmapi.todocenter.constant.TodoCenterConstant; import com.wflow.exception.BusinessException; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -106,7 +106,7 @@ public class ReviewByProvincialDeptManage { //保存一下 当前的主管单位发起人 p.setPreStartUserId(p.getSponsor()); //当前实例置为空 - p.setInstCode(TodoCenterContant.Declared.NULL_INST_CODE); + p.setInstCode(TodoCenterConstant.Declared.NULL_INST_CODE); declaringDTO.getProjectInfo().setId(p.getId()); projectService.updateById(p); if(!joinReviewProvincialBureauService.pushImportProject( diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java index 211df2f..4c62bc3 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/ProjectLibController.java @@ -58,6 +58,12 @@ public class ProjectLibController { return projectLibManage.applicationList(req); } + @GetMapping("/construct/{id}") + @ApiOperation("获取项目建设方案详情") + public ProjectDetailVO constructDetail (@PathVariable Long id){ + return projectLibManage.getConstructProjectDetail(id); + } + @GetMapping("/{id}") @ApiOperation("获取项目详情") public ProjectDetailVO detail (@PathVariable Long id){ diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java index 03566a3..39044c9 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java @@ -74,6 +74,8 @@ import java.time.LocalDateTime; import java.util.*; import java.util.stream.Collectors; +import static com.ningdatech.pmapi.irs.config.IrsSealPlatformProperties.projectId; + /** *
* ProjectLibManage
@@ -474,6 +476,8 @@ public class ProjectLibManage {
project.setInstCode(instanceId);
project.setCreateOn(LocalDateTime.now());
project.setUpdateOn(LocalDateTime.now());
+ // 标识保存的项目信息是否为建设方案申报项目
+ project.setIsConstruct(Boolean.TRUE);
stateMachineUtils.pass(project);
if(projectService.save(project)){
@@ -519,7 +523,7 @@ public class ProjectLibManage {
* @since 2023/02/11 11:15
*/
public ProjectDetailVO getProjectDetail(Long projectId) {
- // 查询项目申报信息
+ // 查询建设方案申报前最新的项目申报信息
Project projectInfo = projectService.getNewProject(projectId);
if (Objects.isNull(projectInfo)) {
return null;
@@ -599,6 +603,32 @@ public class ProjectLibManage {
return vo;
}
+ /**
+ * 获取建设方案申报项目详情
+ * @param projectId
+ * @return com.ningdatech.pmapi.projectlib.model.vo.ProjectDetailVO
+ * @author CMM
+ * @since 2023/07/12 11:43
+ */
+ public ProjectDetailVO getConstructProjectDetail(Long projectId) {
+ // 查询建设方案申报前最新的项目申报信息
+ Project projectInfo = projectService.getNewConstructProject(projectId);
+ if (Objects.isNull(projectInfo)) {
+ return null;
+ }
+ ProjectDetailVO vo = new ProjectDetailVO();
+ BeanUtils.copyProperties(projectInfo, vo);
+ vo.buildDynamicForm(projectInfo.getDynamicForm());
+ // 查询应用
+ List
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java
index 6d0e5c2..0427335 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NotifyManage.java
@@ -12,7 +12,7 @@ import com.ningdatech.pmapi.sys.model.entity.Notify;
import com.ningdatech.pmapi.sys.model.req.NotifyListReq;
import com.ningdatech.pmapi.sys.model.vo.NotifyVO;
import com.ningdatech.pmapi.sys.service.INotifyService;
-import com.ningdatech.pmapi.todocenter.constant.WorkNoticeContant;
+import com.ningdatech.pmapi.todocenter.constant.WorkNoticeConstant;
import com.ningdatech.pmapi.user.util.LoginUserUtil;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
@@ -56,9 +56,9 @@ public class NotifyManage {
String extraInfo = n.getExtraInfo();
if (StringUtils.isNotBlank(extraInfo)) {
JSONObject jsonObject = JSON.parseObject(extraInfo);
- Long projectId = jsonObject.getLong(WorkNoticeContant.PROJECT_ID);
- String instanceId = jsonObject.getString(WorkNoticeContant.INSTANCE_ID);
- Long meetingId = jsonObject.getLong(WorkNoticeContant.MEETING_ID);
+ Long projectId = jsonObject.getLong(WorkNoticeConstant.PROJECT_ID);
+ String instanceId = jsonObject.getString(WorkNoticeConstant.INSTANCE_ID);
+ Long meetingId = jsonObject.getLong(WorkNoticeConstant.MEETING_ID);
notifyVo.setProjectId(projectId);
notifyVo.setInstanceId(instanceId);
notifyVo.setMeetingId(meetingId);
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/TodoCenterContant.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/TodoCenterConstant.java
similarity index 51%
rename from pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/TodoCenterContant.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/TodoCenterConstant.java
index ef8ce19..defaee8 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/TodoCenterContant.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/TodoCenterConstant.java
@@ -3,9 +3,9 @@ package com.ningdatech.pmapi.todocenter.constant;
* @author ZPF
* @since 2023/04/02 14:56
*/
-public interface TodoCenterContant {
+public interface TodoCenterConstant {
- public class Handler {
+ class Handler {
public static final String ACTIVITY_APPROVAL = "userTask";
@@ -14,9 +14,15 @@ public interface TodoCenterContant {
public static final String TASKID_ERROR = "TASKID_ERROR";
}
- public class Declared {
+ class Declared {
public static final String NULL_INST_CODE = "EMPTY";
}
+
+ class SealTemplate{
+ public static final String CITY_TEMPLATE = "市级-预审申请单";
+ public static final String COUNTRY_TEMPLATE = "区县-预审申请单";
+ public static final String CONSTRUCT_TEMPLATE = "建设方案申请单";
+ }
}
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/WorkNoticeContant.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/WorkNoticeConstant.java
similarity index 96%
rename from pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/WorkNoticeContant.java
rename to pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/WorkNoticeConstant.java
index fe12e28..ececc27 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/WorkNoticeContant.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/constant/WorkNoticeConstant.java
@@ -4,7 +4,7 @@ package com.ningdatech.pmapi.todocenter.constant;
* @author CMM
* @since 2023/02/01 14:56
*/
-public interface WorkNoticeContant {
+public interface WorkNoticeConstant {
public final String PASS_MSG_TEMPLATE = "【%s】的【%s】需要您审核。";
public final String PASS_MSG_TEMPLATE2 = "【%s】已通过【%s】,请及时开始下一步操作。";
public final String BACK_MSG_TEMPLATE = "【%s】的【%s】被退回,请及时处理。";
diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java
index c8b4abb..e62d91d 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/handle/WithDrawHandle.java
@@ -2,12 +2,11 @@ package com.ningdatech.pmapi.todocenter.handle;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
-import com.ningdatech.basic.exception.BizException;
import com.ningdatech.pmapi.common.helper.UserInfoHelper;
import com.ningdatech.pmapi.projectlib.enumeration.InstTypeEnum;
import com.ningdatech.pmapi.projectlib.model.entity.ProjectInst;
import com.ningdatech.pmapi.projectlib.service.IProjectInstService;
-import com.ningdatech.pmapi.todocenter.constant.TodoCenterContant;
+import com.ningdatech.pmapi.todocenter.constant.TodoCenterConstant;
import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO;
import com.ningdatech.pmapi.user.security.auth.model.UserInfoDetails;
import com.ningdatech.pmapi.user.util.LoginUserUtil;
@@ -171,7 +170,7 @@ public class WithDrawHandle {
if(!isAndOr && CollUtil.isNotEmpty(beforeAndOr)) {
for (ProgressNode n : beforeAndOr) {
if (n.getUserId().equals(user.getEmployeeCode())
- && !TodoCenterContant.Handler.OR_SIGN_FLAG.equals(n.getWithdrawFlag())) {
+ && !TodoCenterConstant.Handler.OR_SIGN_FLAG.equals(n.getWithdrawFlag())) {
beforeProgressNode = n;
//说明当前操作人 在上个会签或者或签节点
isAndOr = Boolean.TRUE;
@@ -329,7 +328,7 @@ public class WithDrawHandle {
List
- #superOrgOpinion#
-
- #superOrgAuditDate#
-
- #higherOrgOpinion#
-
- #higherOrgAuditDate#
-
- #bigDataBureauOpinion#
-
- #bigDataBureauAuditDate#
-
+ #title#
+
+
+ 项目编号:
+ #projectCode#
+
+ #time#
+
+ #title#
+
+
+ 项目编号:
+ #projectCode#
+
+ #time#
+
本级主管单位意见(盖章)
+
- 上级主管单位意见(盖章)
-
-
-
diff --git a/pmapi/src/main/resources/template/市级-预审申请单.html b/pmapi/src/main/resources/template/市级-预审申请单.html
new file mode 100644
index 0000000..38b34d5
--- /dev/null
+++ b/pmapi/src/main/resources/template/市级-预审申请单.html
@@ -0,0 +1,268 @@
+
+
+
+
+
+
- #bigDataBureauName#
- 意见(盖章)
-
-
+
+
+
+
+ 项目基本信息
+
+
+ 项目名称
+ #projectName#
+
+
+ 是否临时增补
+ #isTemporaryAugment#
+ 是否一地创新全省共享项目
+ #isInnovateWholeProvinceShare#
+
+
+ 项目负责人
+ #responsibleMan#
+ 负责人手机号
+ #responsibleManMobile#
+
+
+ 项目联系人
+ #contactName#
+ 项目联系人手机号
+ #contactPhone#
+
+
+ 建设单位
+ #buildOrgName#
+ 建设单位统一社会信用代码
+ #orgCreditCode#
+
+
+ 项目类型
+ #projectType#
+ 是否首次新建
+ #isFirst#
+
+
+ 预算年度
+ #projectYear#
+ 建设起止时间
+ #beginAndEndTime#
+
+
+ 四大体系
+ #fourSystems#
+
+
+ 是否数字化改革项目
+ #isDigitalReform#
+ 综合业务领域
+ #bizDomain#
+
+
+ 立项依据
+ #buildBasisList#
+
+
+ 是否上云
+ #isCloud#
+ 云类型
+ #cloudType#
+
+
+ 项目简介
+ #projectIntroduction#
+
+
+ 资金申报情况
+
+
+ 申报金额
+ #declareAmount#
+
+
+ 自有资金
+ #declareHaveAmount#
+ 政府投资-本级财政资金
+ #declareGovOwnFinanceAmount#
+
+
+ 政府投资-上级补助资金
+ #declareGovSuperiorFinanceAmount#
+ 银行贷款
+ #declareBankLendingAmount#
+
+
+ 其他资金
+ #declareOtherAmount#
+
+
+ 本年计划投资(万元)
+ #yearPlanInvest#
+
+
+ 资金分配情况
+
+
+ 软件开发
+ #softwareDevelopmentAmount#
+ 云资源、硬件购置
+ #cloudHardwarePurchaseAmount#
+
+
+ 第三方服务
+ #thirdPartyAmount#
+
+
+ 年度支付计划
+
+
+ 年度支付金额
+ #annualPlanAmount#
+
+
+ 自有资金
+ #annualPlanHaveAmount#
+ 政府投资-本级财政资金
+ #annualPlanGovOwnFinanceAmount#
+
+
+ 政府投资-上级补助资金
+ #annualPlanGovSuperiorFinanceAmount#
+ 银行贷款
+ #annualPlanBankLendingAmount#
+
+
+ 其他资金
+ #annualPlanOtherAmount#
+
+
+ 备注
+
+
+ 备注
+ #projectRemarks#
+
+
+ 单位意见
+
+
+
+ 本级主管单位意见(盖章)
+
+
+
+
+
+
+
+ 项目基本信息
+
+
+ 项目名称
+ #projectName#
+
+
+ 是否临时增补
+ #isTemporaryAugment#
+ 是否一地创新全省共享项目
+ #isInnovateWholeProvinceShare#
+
+
+ 项目负责人
+ #responsibleMan#
+ 负责人手机号
+ #responsibleManMobile#
+
+
+ 项目联系人
+ #contactName#
+ 项目联系人手机号
+ #contactPhone#
+
+
+ 建设单位
+ #buildOrgName#
+ 建设单位统一社会信用代码
+ #orgCreditCode#
+
+
+ 项目类型
+ #projectType#
+ 是否首次新建
+ #isFirst#
+
+
+ 预算年度
+ #projectYear#
+ 建设起止时间
+ #beginAndEndTime#
+
+
+ 四大体系
+ #fourSystems#
+
+
+ 是否数字化改革项目
+ #isDigitalReform#
+ 综合业务领域
+ #bizDomain#
+
+
+ 立项依据
+ #buildBasisList#
+
+
+ 是否上云
+ #isCloud#
+ 云类型
+ #cloudType#
+
+
+ 项目简介
+ #projectIntroduction#
+
+
+ 资金申报情况
+
+
+ 申报金额
+ #declareAmount#
+
+
+ 自有资金
+ #declareHaveAmount#
+ 政府投资-本级财政资金
+ #declareGovOwnFinanceAmount#
+
+
+ 政府投资-上级补助资金
+ #declareGovSuperiorFinanceAmount#
+ 银行贷款
+ #declareBankLendingAmount#
+
+
+ 其他资金
+ #declareOtherAmount#
+
+
+ 本年计划投资(万元)
+ #yearPlanInvest#
+
+
+ 资金分配情况
+
+
+ 软件开发
+ #softwareDevelopmentAmount#
+ 云资源、硬件购置
+ #cloudHardwarePurchaseAmount#
+
+
+ 第三方服务
+ #thirdPartyAmount#
+
+
+ 年度支付计划
+
+
+ 年度支付金额
+ #annualPlanAmount#
+
+
+ 自有资金
+ #annualPlanHaveAmount#
+ 政府投资-本级财政资金
+ #annualPlanGovOwnFinanceAmount#
+
+
+ 政府投资-上级补助资金
+ #annualPlanGovSuperiorFinanceAmount#
+ 银行贷款
+ #annualPlanBankLendingAmount#
+
+
+ 其他资金
+ #annualPlanOtherAmount#
+
+
+ 备注
+
+
+ 备注
+ #projectRemarks#
+
+
+ 单位意见
+
+
+
+ 大数据局主管单位意见(盖章)
+
+
+