From 3605089b840398eb6912ccd22b2b929e516ec76d Mon Sep 17 00:00:00 2001
From: CMM <2198256324@qq.com>
Date: Fri, 21 Jul 2023 14:35:04 +0800
Subject: [PATCH] =?UTF-8?q?=E7=9B=96=E7=AB=A0=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../ningdatech/pmapi/todocenter/manage/TodoCenterManage.java   | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
index 9a322d9..762c4b0 100644
--- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
+++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java
@@ -1157,6 +1157,9 @@ public class TodoCenterManage {
                     .eq(Region::getRegionName,areaName));
             VUtils.isTrue(Objects.isNull(region)).throwMessage("项目所属区域不存在!");
             Integer regionLevel = region.getRegionLevel();
+            if (CommonEnum.LS_SBJ.getDesc().equals(areaName)){
+                regionLevel = RegionConst.RL_CITY;
+            }
             // 获取项目申报时是否选择了主管单位和上级条线主管单位
             // 主管单位信息
             Integer isSuperOrg = project.getIsSuperOrg();
@@ -1165,7 +1168,7 @@ public class TodoCenterManage {
             Integer isHigherSuperOrg = project.getIsHigherSuperOrg();
             String higherSuperOrgCode = project.getHigherSuperOrgCode();
             switch (regionLevel) {
-                // 市级预审
+                // 市级预审(市本级)
                 case RegionConst.RL_CITY:
                     String cityTemplateName = TodoCenterConstant.SealTemplate.CITY_TEMPLATE;
                     // 设置pdf模板参数
@@ -1523,8 +1526,11 @@ public class TodoCenterManage {
                 throw new BizException("项目所属区域不存在!");
             }
             Integer regionLevel = region.getRegionLevel();
+            if (CommonEnum.LS_SBJ.getDesc().equals(areaName)){
+                regionLevel = RegionConst.RL_CITY;
+            }
             switch (regionLevel) {
-                // 市级预审
+                // 市级预审(市本级)
                 case RegionConst.RL_CITY:
                     String cityTemplateName = TodoCenterConstant.SealTemplate.CITY_TEMPLATE;
                     return generateSealedPdf(req, declaredProject,cityTemplateName,notSealedFileId);