From b6b96e60485cbb7bdb3cc7f2cce44e0276513609 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期四, 23 十一月 2023 14:19:28 +0800
Subject: [PATCH] 优化花城数据查询太慢3
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActIntegralUserService.java | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActIntegralUserService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActIntegralUserService.java
index 95d1c0c..d505f2b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActIntegralUserService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActIntegralUserService.java
@@ -3,7 +3,9 @@
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO;
import com.panzhihua.common.model.vos.R;
+import com.panzhihua.common.model.vos.community.integral.IntegralUserRankVO;
import com.panzhihua.service_community.model.dos.ComActIntegralUserDO;
+import org.apache.ibatis.annotations.Param;
/**
* @auther lyq
@@ -31,7 +33,7 @@
R getIntegralReceiveApplets(Long userId, Long communityId);
/**
- * 小程序-查询用户积分列表
+ * 小程序-积分统计
*
* @param userId
* 用户id
@@ -57,4 +59,32 @@
*/
R getTaskActivityPeopleList(Long activityId);
+ /**
+ * 查询我的积分余额
+ * @param userId
+ * @param communityId
+ * @return
+ */
+ R getUserIntegralBalance(Long userId, Long communityId);
+
+ /**
+ * 获取积分详情
+ * @param id
+ * @return
+ */
+ R getUserIntegralDetail(Long id);
+
+
+ /**
+ * 小程序-查询用户在当前社区积分排名
+ *
+ * @param userId
+ * 用户id
+ * @param communityId
+ * 社区id
+ * @return 用户在当前社区积分排名
+ */
+ IntegralUserRankVO getIntegralUserRank(Long communityId,Long userId);
+
+
}
--
Gitblit v1.7.1