From 9bab267e8be49ade8df6ec3d6d3f96b03321e429 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期二, 01 三月 2022 14:07:29 +0800 Subject: [PATCH] 三社功能,抽奖功能修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialProjectServiceImpl.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialProjectServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialProjectServiceImpl.java index 5f75693..b6159c34 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialProjectServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActSocialProjectServiceImpl.java @@ -7,9 +7,11 @@ import com.panzhihua.common.model.dtos.property.CommonPage; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.model.vos.community.social.SocialProjectVO; +import com.panzhihua.service_community.dao.ComActDAO; import com.panzhihua.service_community.entity.ComActSocialProject; import com.panzhihua.service_community.dao.ComActSocialProjectDao; import com.panzhihua.service_community.entity.ProjectRelationVO; +import com.panzhihua.service_community.model.dos.ComActDO; import com.panzhihua.service_community.service.ComActSocialProjectService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; @@ -29,8 +31,16 @@ @Resource private ComActSocialProjectDao comActSocialProjectDao; + @Resource + private ComActDAO comActDAO; @Override public R pageList(CommonPage commonPage) { + if(commonPage.getParamId2()!=null){ + ComActDO comActDO=comActDAO.selectById(commonPage.getCommunityId()); + if(comActDO!=null){ + commonPage.setStreetId(comActDO.getStreetId()); + } + } return R.ok(comActSocialProjectDao.pageList(new Page(commonPage.getPage(),commonPage.getSize()),commonPage)); } -- Gitblit v1.7.1