package com.ruoyi.order.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.order.entity.Withdraw;
|
import com.ruoyi.order.vo.UserWithdrawRecordVO;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 用户提现申请记录表 Mapper 接口
|
* </p>
|
*
|
* @author hjl
|
* @since 2024-07-09
|
*/
|
@Mapper
|
public interface WithdrawMapper extends BaseMapper<Withdraw> {
|
|
/**
|
* 用户所关联提现记录分页列表
|
*
|
* @param nickname 用户名称
|
* @param userPhone 用户手机号
|
* @param applyForTime 申请时间
|
* @param state 审核状态
|
* @param page 分页
|
* @return 分页列表
|
*/
|
Page<UserWithdrawRecordVO> withdrawPage(@Param("userIds") List<Integer> userIds,@Param("name") String nickname, @Param("phone") String userPhone,
|
@Param("time") String applyForTime,
|
@Param("state") Integer state, Page<UserWithdrawRecordVO> page);
|
|
Page<UserWithdrawRecordVO> withdrawPage1(@Param("cityList") List<String> cityList,@Param("userIds") List<Integer> userIds,@Param("name") String nickname, @Param("phone") String userPhone,
|
@Param("time") String applyForTime,
|
@Param("state") Integer state, Page<UserWithdrawRecordVO> page);
|
|
/**
|
* 根据所选id导出
|
*
|
* @param ids 提现记录ids
|
* @return 列表
|
*/
|
List<UserWithdrawRecordVO> exportByIdList(@Param("ids") List<String> ids);
|
|
/**
|
* 提现记录列表
|
*
|
* @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);
|
|
/**
|
* 获取用户提现金额
|
*
|
* @param cityList 城市集合
|
* @param startDateStr 季度开始时间
|
* @param endDateStr 季度结束时间
|
* @return 总金额
|
*/
|
BigDecimal withdrawalTotalMoney(@Param("cityList") List<String> cityList, @Param("start") String startDateStr, @Param("end") String endDateStr);
|
|
/**
|
* 年度查询
|
*
|
* @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 分页列表
|
*/
|
Page<UserWithdrawRecordVO> withdrawList(@Param("userId") Integer userId, Page<UserWithdrawRecordVO> page);
|
Page<UserWithdrawRecordVO> withdrawList1(@Param("cityList") List<String> cityList,@Param("userId") Integer userId, Page<UserWithdrawRecordVO> page);
|
}
|