package com.ylx.point.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ylx.point.domain.PointUserActivityTaskCompletion;
import com.ylx.point.domain.vo.PointActivityOverviewVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户活动任务完成Mapper接口
 *
 * @author wzj
 * @date 2026-03-25
 */
public interface PointUserActivityTaskCompletionMapper extends BaseMapper<PointUserActivityTaskCompletion> {

    PointActivityOverviewVO getPointActivityOverviewByActivityId(Long activityId);

    Integer selectCompletedTaskCount(String openId);

    List<PointUserActivityTaskCompletion> selectCompletionsByOpenIdAndTaskIds(@Param("openId") String openId, @Param("taskIds") List<Long> taskIds);

}
