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 b6e0134..4a22769 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 @@ -1324,9 +1324,18 @@ public class TodoCenterManage { // 设置pdf模板参数 JSONObject cityParamsMap = assemblyPdfParams(declaredProject, cityTemplateName); // 盖章审核为主管单位审核 - if (superOrgCode.equals(empPosUnitCode)) { - cityParamsMap.put("superOrgOpinion", auditOpinion); - cityParamsMap.put("superOrgAuditDate", auditDate); + if (CommonEnum.YES.getCode().equals(isSuperOrg)){ + // 有主管单位信息且登录用户所在单位是主管单位 + if (superOrgCode.equals(empPosUnitCode)){ + cityParamsMap.put("superOrgOpinion",auditOpinion); + cityParamsMap.put("superOrgAuditDate",auditDate); + } + } else if (CommonEnum.NO.getCode().equals(isSuperOrg)) { + // 没有选主管单位,默认为项目建设单位且登录用户所在单位为项目建设单位 + if (buildOrgCode.equals(empPosUnitCode)) { + cityParamsMap.put("superOrgOpinion", auditOpinion); + cityParamsMap.put("superOrgAuditDate", auditDate); + } } return getSealedPdf(req, declaredProject,cityTemplateName,cityParamsMap); // 区县预审