package com.gxwebsoft.project.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.project.entity.ProjectRenew;
import com.gxwebsoft.project.param.ProjectRenewParam;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 续费管理Mapper
 *
 * @author 科技小王子
 * @since 2025-03-14 16:21:11
 */
public interface ProjectRenewMapper extends BaseMapper<ProjectRenew> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<ProjectRenew>
     */
    List<ProjectRenew> selectPageRel(@Param("page") IPage<ProjectRenew> page,
                             @Param("param") ProjectRenewParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<ProjectRenew> selectListRel(@Param("param") ProjectRenewParam param);


    /**
     * 统计金额总和
     *
     * @param wrapper 查询条件
     * @return 金额总和
     */
    BigDecimal selectSumMoney(@Param("ew") Wrapper<?> wrapper);

}
