From 25d1b9483fd75fe21e60b03ad9f3c9c3e281d23c Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期三, 16 三月 2022 13:32:55 +0800
Subject: [PATCH] 党员认证Bug修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java
index fcd9303..3a3947b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActEasyPhotoServiceImpl.java
@@ -7,7 +7,10 @@
 
 import javax.annotation.Resource;
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.panzhihua.common.model.dtos.common.PageComActEasyPhotoEvaluateDto;
 import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO;
+import com.panzhihua.service_community.entity.ComActEasyPhotoEvaluate;
 import com.panzhihua.service_community.entity.ComActEasyPhotoHandler;
 import com.panzhihua.service_community.entity.SysTemplateConfig;
 import com.panzhihua.service_community.service.ComActEasyPhotoHandlerService;
@@ -77,6 +80,8 @@
     private SysTemplateConfigDao sysTemplateConfigDao;
     @Resource
     private ComActEasyPhotoHandlerService easyPhotoHandlerService;
+    @Resource
+    private ComActEasyPhotoEvaluateMapper comActEasyPhotoEvaluateMapper;
     /**
      * 分页查询随手拍
      *
@@ -192,6 +197,10 @@
                 comActEasyPhotoVO.setEasyPhotoActivityVO(easyPhotoActivityVO);
             }
         }
+        PageComActEasyPhotoEvaluateDto evaluateDto = new PageComActEasyPhotoEvaluateDto();
+        evaluateDto.setServiceId(id);
+        evaluateDto.setServiceType(ComActEasyPhotoEvaluate.ServiceType.SSP);
+        comActEasyPhotoVO.setEvaluateList(comActEasyPhotoEvaluateMapper.queryAllByList(evaluateDto));
         return R.ok(comActEasyPhotoVO);
     }
 
@@ -321,7 +330,7 @@
                 if(comActEasyPhotoVO.getHandleList() != null && comActEasyPhotoVO.getHandleList().size() > 0){
                     comActEasyPhotoVO.getHandleList().forEach(handle -> {
                         easyPhotoHandlerService.addHandleRecord(cmActEasyPhotoDO.getCommunityId(),comActEasyPhotoVO.getUserId()
-                                ,cmActEasyPhotoDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.SSP);
+                                ,cmActEasyPhotoDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.SSP,comActEasyPhotoVO.getSponsorId());
                     });
                 }
                 break;

--
Gitblit v1.7.1