package com.ylx.point.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ylx.point.domain.PointUserSignStatus;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户签到状态快照Mapper接口
 *
 * @author wzj
 * @date 2026-03-25
 */
public interface PointUserSignStatusMapper extends BaseMapper<PointUserSignStatus> {

    @Select("SELECT * FROM point_user_sign_status WHERE open_id = #{openId} AND activity_id = #{activityId} FOR UPDATE")
    PointUserSignStatus selectByOpenIdAndActivityIdForUpdate(@Param("openId") String openId, @Param("activityId") Long activityId);
}
