lidongdong
2023-11-21 28535052aa8c06aa03542eefb89dda70b0fb9e0b
增加  用户社区积分排名
6个文件已修改
55 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NewStriveAppApi.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ComActIntegralUserApi.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComActIntegralUserService.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActIntegralUserServiceImpl.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/timejob/src/main/java/com/panzhihua/timejob/jobhandler/NewFightHandler.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;