package com.willalp.event.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.willalp.event.domain.HsWelfareApplyRecord;
import com.willalp.event.domain.vo.WelfareApplyStatVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 福利报名记录Mapper接口
 *
 * @author willalp
 * @date 2023-04-17
 */
public interface HsWelfareApplyRecordMapper extends BaseMapper<HsWelfareApplyRecord>
{
    /**
     * 查询福利报名记录列表
     *
     * @param hsWelfareApplyRecord 福利报名记录
     * @return 福利报名记录集合
     */
    List<HsWelfareApplyRecord> selectHsWelfareApplyRecordList(HsWelfareApplyRecord hsWelfareApplyRecord);

    /**
     * 统计活动报名数量
     *
     * @param source
     * @return
     */
    List<WelfareApplyStatVo> stat(@Param("source") String source);

    /**
     * 发布操作修改为未报名
     *
     * @param source
     * @return
     */
    int doUnregistered(@Param("source") String source);

    /**
     * 导入初始数据模板
     *
     * @return
     */
    List<HsWelfareApplyRecord> importInitDataTemp();
}
