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);
|
}
|