springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NewStriveAppApi.java
@@ -783,6 +783,11 @@ @ApiOperation(value = "获取社区积分排名") @GetMapping("/getIntegralUserRank") public R getIntegralUserRank() { return communityService.getIntegralUserRank(getCommunityId(),getUserId()); } } springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -11846,4 +11846,11 @@ @GetMapping("/integral/user/getIntegralUserRank") public R getIntegralUserRank(@RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId); } 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; @@ -174,4 +175,21 @@ 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)); } } 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 @@ -71,4 +73,18 @@ * @return */ R getUserIntegralDetail(Long id); /** * 小程序-查询用户在当前社区积分排名 * * @param userId * 用户id * @param communityId * 社区id * @return 用户在当前社区积分排名 */ IntegralUserRankVO getIntegralUserRank(Long communityId,Long userId); } springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActIntegralUserServiceImpl.java
@@ -216,4 +216,10 @@ public R getUserIntegralDetail(Long id) { return comActIntegralUserTradeService.getUserIntegralDetail(id); } @Override public IntegralUserRankVO getIntegralUserRank(Long communityId, Long userId) { return baseMapper.getIntegralUserRank(communityId,userId); } } springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/java/com/panzhihua/timejob/jobhandler/NewFightHandler.java
@@ -1,7 +1,6 @@ package com.panzhihua.timejob.jobhandler; import com.panzhihua.common.model.vos.R; import com.panzhihua.common.service.jinhui.JinhuiCommunityService; import com.panzhihua.common.service.partybuilding.NewStriveForFeign; import com.xxl.job.core.biz.model.ReturnT; import com.xxl.job.core.handler.annotation.XxlJob;