package com.willalp.integral.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.willalp.integral.domain.Integral;
import com.willalp.integral.domain.excelVo.IntegralVo2;
import com.willalp.integral.request.IntegralGroupQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 积分管理Mapper接口
 *
 * @author willalp
 * @date 2021-12-02
 */
public interface IntegralMapper extends BaseMapper<Integral> {

    /**
     * 查询积分管理列表
     *
     * @param integral 积分管理
     * @return 积分管理集合
     */
    public List<Integral> selectIntegralList(Integral integral);

    void saveBatchIntegral(@Param("list") List<Integral> list);

    List<Integral> queryIntegralSum(IntegralGroupQuery integralGroupQuery);

    List<Map<String,Object>> getIntegralReportList(Map<String,Object> req);

    /**
     * 用户余额
     *
     * @param integralGroupQuery
     * @return
     */
    List<IntegralVo2> userBalances(IntegralGroupQuery integralGroupQuery);
}
