From c05c7423626ae618ea820566dbcf19fe01233fcc Mon Sep 17 00:00:00 2001 From: yanghui <2536613402@qq.com> Date: 星期一, 24 十月 2022 11:30:00 +0800 Subject: [PATCH] #feat 修改党建动态 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java index 56ae200..7684a72 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java @@ -307,14 +307,23 @@ } page.setSize(pageSize); page.setCurrent(pageNum); + Long communityId = comActActivityVO.getCommunityId(); + if (null != communityId){ + List<Long> communityIds = comActDAO.selectIds(communityId); + if (CollUtil.isEmpty(communityIds)) { + communityIds = new ArrayList<>(); + communityIds.add(communityId); + } + comActActivityVO.setCommunityIds(communityIds); + } Integer type = comActActivityVO.getType(); IPage<ComActActivityVO> iPage = null; if (nonNull(type) && type.equals(4)) { if (nonNull(comActActivityVO.getCommunityId())) { - ComActDO comActDO = comActDAO.selectById(comActActivityVO.getCommunityId()); - if (nonNull(comActDO)) { - comActActivityVO.setStreetId(comActDO.getStreetId()); - } + ComActDO comActDO = comActDAO.selectById(comActActivityVO.getCommunityId()); + if (nonNull(comActDO)) { + comActActivityVO.setStreetId(comActDO.getStreetId()); + } } iPage = comActActivityDAO.pageProjectActivity(page, comActActivityVO); } else { -- Gitblit v1.7.1