From 20a5a375afa9c0003cc450e8995f64795ad21b20 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 9 Jun 2023 17:45:01 +0800 Subject: [PATCH] =?UTF-8?q?debug=20=E4=BA=BA=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 99c369c..64a870e 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 @@ -152,7 +152,12 @@ public class TodoCenterManage { // 获取登录用户全量信息 UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(userId); // 获取员工浙政钉code - employeeCode = userFullInfo.getEmployeeCode(); + if(Objects.nonNull(userFullInfo)){ + employeeCode = userFullInfo.getEmployeeCode(); + } + if(StringUtils.isBlank(employeeCode)){ + return PageVo.empty(); + } } // 查出项目库项目