mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package com.panzhihua.service_community.dao;
 
import java.util.List;
 
import com.panzhihua.common.model.vos.community.integral.ComActIntegralUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.dtos.community.integral.ComActIntegralCommunityRankDTO;
import com.panzhihua.common.model.vos.community.integral.ComActIntegralCommunityRankVO;
import com.panzhihua.common.model.vos.community.integral.ComActIntegralUserListVO;
import com.panzhihua.common.model.vos.community.integral.IntegralUserRankVO;
import com.panzhihua.common.model.vos.community.integral.admin.ComActActivityPeopleVO;
import com.panzhihua.service_community.model.dos.ComActIntegralUserDO;
 
/**
 * @auther lyq
 * @create 2021-07-28 16:02:57
 * @describe 用户积分账户表mapper类
 */
@Mapper
public interface ComActIntegralUserMapper extends BaseMapper<ComActIntegralUserDO> {
 
    /**
     * 小程序-查询用户积分列表
     * 
     * @param userId
     *            用户id
     * @return 用户积分列表
     */
    List<ComActIntegralUserListVO> getIntegralUserListApplets(@Param("userId") Long userId);
 
    /**
     * 小程序-查询用户在当前社区积分排名
     * 
     * @param userId
     *            用户id
     * @param communityId
     *            社区id
     * @return 用户在当前社区积分排名
     */
    IntegralUserRankVO getIntegralUserRank(@Param("communityId") Long communityId, @Param("userId") Long userId);
 
    /**
     * 查询社区积分账户排行榜
     * 
     * @param communityRankDTO
     *            请求参数
     * @return 社区积分账户排行榜
     */
    IPage<ComActIntegralCommunityRankVO> getIntegralCommunityRankApplets(Page page,
        @Param("communityRankDTO") ComActIntegralCommunityRankDTO communityRankDTO);
 
    /**
     * 根据社区活动id查询社区活动报名且未参与人员列表
     * 
     * @param activityId
     *            活动id
     * @return 社区活动报名且未参与人员列表
     */
    List<ComActActivityPeopleVO> getTaskActivityPeopleList(@Param("activityId") Long activityId);
 
    /**
     * 积分统计
     * @param userId
     * @param communityId
     * @return
     */
    ComActIntegralUserVO getUserIntegralStatistics(@Param("userId") Long userId, @Param("communityId") Long communityId);
}