package com.ruoyi.admin.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.admin.entity.Withdraw;
|
import com.ruoyi.admin.vo.UserWithdrawRecordVO;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 用户提现记录表 Mapper 接口
|
* </p>
|
*
|
* @author hjl
|
* @since 2024-05-29
|
*/
|
public interface WithdrawMapper extends BaseMapper<Withdraw> {
|
|
/**
|
* 获取用户提现金额
|
*
|
* @param cityList 城市集合
|
* @return 总金额
|
*/
|
BigDecimal withdrawalTotalMoney(@Param("cityList") List<String> cityList);
|
|
/**
|
* 年度查询
|
*
|
* @param cityList 城市列表
|
* @return 年度提现总额
|
*/
|
BigDecimal withdrawalTotalMoneyByYear(@Param("cityList") List<String> cityList);
|
|
/**
|
* 月度查询
|
*
|
* @param cityList 城市列表
|
* @return 年度提现总额
|
*/
|
BigDecimal withdrawalTotalMoneyByMonth(@Param("cityList") List<String> cityList);
|
|
/**
|
* 用户所关联提现记录分页列表
|
*
|
* @param userId 用户id
|
* @param page 分页参数
|
* @return 分页列表
|
*/
|
IPage<UserWithdrawRecordVO> withdrawList(@Param("userId") Integer userId, Page<UserWithdrawRecordVO> page);
|
|
/**
|
* 用户所关联提现记录分页列表
|
*
|
* @param nickname 用户名称
|
* @param userPhone 用户手机号
|
* @param applyForTime 申请时间
|
* @param state 审核状态
|
* @param page 分页
|
* @return 分页列表
|
*/
|
IPage<UserWithdrawRecordVO> withdrawPage(@Param("name") String nickname, @Param("phone") String userPhone,
|
@Param("time") String applyForTime,
|
@Param("state") Integer state, Page<UserWithdrawRecordVO> page);
|
|
/**
|
* 提现记录列表
|
*
|
* @param nickname 用户名称
|
* @param userPhone 用户手机号
|
* @param applyForTime 申请时间
|
* @param state 审核状态
|
* @return 分页列表
|
*/
|
List<UserWithdrawRecordVO> exportList(@Param("name") String nickname, @Param("phone") String userPhone,
|
@Param("time") String applyForTime,
|
@Param("state") Integer state);
|
|
/**
|
* 根据所选id导出
|
*
|
* @param ids 提现记录ids
|
* @return 列表
|
*/
|
List<UserWithdrawRecordVO> exportByIdList(List<String> ids);
|
}
|