From a3fef62a6ce0165423ab55fd2408c437a178140d Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Sat, 29 Mar 2025 11:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E5=91=8A=E8=AF=A6=E6=83=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/busi/service/impl/BusiNoticeServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/busi/service/impl/BusiNoticeServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/busi/service/impl/BusiNoticeServiceImpl.java index ab2f77a..f0ea812 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/busi/service/impl/BusiNoticeServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/busi/service/impl/BusiNoticeServiceImpl.java @@ -258,7 +258,7 @@ public class BusiNoticeServiceImpl extends ServiceImpl queryWrapperMember =new LambdaQueryWrapper<>(); queryWrapperMember.eq(MemberApply::getUserId,userDetail.getUserId()).eq(MemberApply::getApprovalStatus,1).last("limit 1"); @@ -269,7 +269,8 @@ public class BusiNoticeServiceImpl extends ServiceImpl signList = busiNoticeSignMapper.selectList(new LambdaQueryWrapper().eq(BusiNoticeSign::getNoticeId, noticeId)); - List signUserAvatarList = signList.stream().map(BusiNoticeSign::getAvatar).collect(Collectors.toList()); + List signUserAvatarList = signList.stream().map(it-> Optional.ofNullable(it.getAvatar()).orElse("") + ).collect(Collectors.toList()); res.put("signUserAvatarList",signUserAvatarList); //当前用户是否已关注该通告主 Long userId=null;