package com.ruoyi.frequency.integralrecord.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.controller.resp.IntegralPageResp;
import com.ruoyi.frequency.integralrecord.entity.IntegralRecord;
import com.ruoyi.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 积分记录Mapper接口
 *
 * @author liwenlong
 * @date 2024-01-29
 */
public interface IntegralRecordMapper  extends BaseMapper<IntegralRecord>
{
    /**
     * 查询积分记录
     *
     * @param id 积分记录主键
     * @return 积分记录
     */
    public IntegralRecord selectIntegralRecordById(Long id);

    /**
     * 查询积分记录列表
     *
     * @param integralRecord 积分记录
     * @return 积分记录集合
     */
    public List<IntegralRecord> selectIntegralRecordList(IntegralRecord integralRecord);

    /**
     * 新增积分记录
     *
     * @param integralRecord 积分记录
     * @return 结果
     */
    public int insertIntegralRecord(IntegralRecord integralRecord);

    /**
     * 修改积分记录
     *
     * @param integralRecord 积分记录
     * @return 结果
     */
    public int updateIntegralRecord(IntegralRecord integralRecord);

    Page<IntegralPageResp> integralPage(@Param("page")  Page<Object> objectPage, @Param("userVo")  UserVo userVo);
}
