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()); });