From eef6d2bcdb29348efe4ef17bc45a4c6886b487b1 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期四, 11 七月 2024 18:16:26 +0800
Subject: [PATCH] 花城 【小程序】统计排行添加是否是问题清单标识5

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActIntegralUserApi.java |   45 ++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 42 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActIntegralUserApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActIntegralUserApi.java
index 33e02ca..603d9c7 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActIntegralUserApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActIntegralUserApi.java
@@ -2,6 +2,7 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.vos.community.integral.IntegralUserRankVO;
 import org.springframework.web.bind.annotation.*;
 
 import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO;
@@ -57,16 +58,27 @@
     }
 
     /**
-     * 小程序-查询用户积分列表
+     * 小程序-积分统计
      * 
      * @param userId
      *            用户id
      * @return 用户积分列表
      */
-    @PostMapping("/user/list/applets")
+    @GetMapping("/user/statistics")
     public R getIntegralUserListApplets(@RequestParam("userId") Long userId,
-        @RequestParam("communityId") Long communityId) {
+        @RequestParam(value = "communityId", required = false) Long communityId) {
         return comActIntegralUserService.getIntegralUserListApplets(userId, communityId);
+    }
+
+    /**
+     * 查询我的积分余额
+     * @param userId
+     * @param communityId
+     * @return
+     */
+    @GetMapping("/user/balance")
+    public R getUserIntegralBalance(@RequestParam("userId") Long userId, @RequestParam("communityId") Long communityId) {
+        return comActIntegralUserService.getUserIntegralBalance(userId, communityId);
     }
 
     /**
@@ -153,4 +165,31 @@
         return comActIntegralUserService.getTaskActivityPeopleList(activityId);
     }
 
+    /**
+     * 获取积分详情
+     * @param id
+     * @return
+     */
+    @GetMapping("/user/detail")
+    public R getUserIntegralDetail(@RequestParam("id") Long id) {
+        return comActIntegralUserService.getUserIntegralDetail(id);
+    }
+
+    /**
+     * 小程序-查询用户在当前社区积分排名
+     *
+     * @param userId
+     *            用户id
+     * @param communityId
+     *            社区id
+     * @return 用户在当前社区积分排名
+     */
+    @GetMapping("/user/getIntegralUserRank")
+    public R  getIntegralUserRank(@RequestParam("communityId") Long communityId,
+                                  @RequestParam("userId") Long userId)
+    {
+        return R.ok(comActIntegralUserService.getIntegralUserRank(communityId,userId));
+    }
+
+
 }

--
Gitblit v1.7.1