From dca3df57c2934bf7e18d80ede616fc70f9c93c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com> Date: Sun, 10 Nov 2024 20:09:52 +0800 Subject: [PATCH] =?UTF-8?q?bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/demo/expert/controller/ExpertController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java index 6b3d551..b8e82a5 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expert/controller/ExpertController.java @@ -133,7 +133,12 @@ public class ExpertController extends JeecgController { experttemp.setTopPic(sysUser.getAvatar()); experttemp.setPhone(sysUser.getPhone()); experttemp.setEmails(sysUser.getEmail()); - experttemp.setSsdep(sysDepart.getDepartName()); + if (sysDepart!=null ){ + experttemp.setSsdep(sysDepart.getDepartName()); + }else{ + experttemp.setSsdep("暂无"); + } + experttemp.setPsd(sysUser.getPassword()); experttemp.setSepsd(sysUser.getPassword()); });