From 43f0578e80af82ecae6c61b51bd0539c6b960603 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期二, 16 八月 2022 19:08:32 +0800
Subject: [PATCH] 服务范围优化

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java |   46 ++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java
index ec6b707..0b7f25b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java
@@ -2,9 +2,13 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.dtos.common.EditComActEasyPhotoHandlerDto;
 import com.panzhihua.common.model.dtos.common.EvaluateEasyDto;
+import com.panzhihua.common.model.dtos.common.PageComActEasyPhotoHandlerDto;
+import com.panzhihua.common.model.vos.common.ComActEasyPhotoHandlerVo;
 import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO;
 import com.panzhihua.common.service.community.ComActEasyPhotoEvaluateFeign;
+import com.panzhihua.common.service.community.ComActEasyPhotoHandlerFeign;
 import org.springframework.util.ObjectUtils;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
@@ -61,6 +65,7 @@
         if (loginUserInfo != null) {
             comActEasyPhotoVO.setCommunityId(loginUserInfo.getCommunityId());
             comActEasyPhotoVO.setLogInUserId(loginUserInfo.getUserId());
+            comActEasyPhotoVO.setIsDpcMember(loginUserInfo.getIsDpcMember());
         }
         return communityService.pageEasyPhotoApplets(comActEasyPhotoVO);
     }
@@ -83,6 +88,41 @@
         comActEasyPhotoVO.setSponsorId(userId);
         comActEasyPhotoVO.setStatus(1);
         return communityService.addEasyPhoto(comActEasyPhotoVO);
+    }
+
+    /**
+     * description  queryByPage  分页查询
+     *
+     * @param comActEasyPhotoHandler 请求参数
+     * @return 分页查询返回参数
+     * @author lyq
+     * @date 2022-03-01 13:45:10
+     */
+    @ApiOperation(value = "查询处理列表",response = ComActEasyPhotoHandlerVo.class)
+    @PostMapping("/handleList")
+    public R handleList(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) {
+        comActEasyPhotoHandler.setUserId(this.getUserId());
+        return this.communityService.queryEasyPhotoHandler(comActEasyPhotoHandler);
+    }
+    /**
+     * description  edit  编辑数据
+     *
+     * @param comActEasyPhotoHandler 请求参数
+     * @return 编辑结果
+     * @author lyq
+     * @date 2022-03-01 13:45:10
+     */
+    @ApiOperation(value = "提交反馈")
+    @PostMapping("/editEasyPhotoHandler")
+    public R editEasyPhotoHandler(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler) {
+        return this.communityService.editEasyPhotoHandler(comActEasyPhotoHandler);
+    }
+
+    @ApiOperation(value = "查询处理详情", response = ComActEasyPhotoHandlerVo.class)
+    @ApiImplicitParam(name = "id", value = "处理id", required = true)
+    @GetMapping("/easyPhotoHandler")
+    public R detailEasyPhotoHandler(@RequestParam("id") Long id) {
+        return this.communityService.detailEasyPhotoHandler(id);
     }
 
     @ApiOperation(value = "查询随手拍是否有活动", response = ComActEasyPhotoActivityVO.class)
@@ -245,7 +285,7 @@
     @GetMapping("agreement")
     @ApiImplicitParam(name = "type", value = "1居民端app协议 2网格员端app协议 3商家端app协议 4隐私政策")
     public R agreement(@RequestParam("type") Integer type) {
-        return userService.agreement(type);
+        return userService.agreement(type,this.getAppId());
     }
 
     @ApiOperation("发布留言")
@@ -355,7 +395,9 @@
         LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin();
         if (loginUserInfo != null) {
             userId = loginUserInfo.getUserId();
-            communityId = loginUserInfo.getCommunityId();
+            if(loginUserInfo.getCommunityId()!=null){
+                communityId = loginUserInfo.getCommunityId();
+            }
         }
         return communityService.getUserReward(userId, communityId);
     }

--
Gitblit v1.7.1