package com.ruoyi.admin.service;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.ruoyi.admin.entity.Order;
|
import com.ruoyi.admin.entity.User;
|
import com.ruoyi.admin.entity.Withdraw;
|
import com.ruoyi.admin.entity.WithdrawalSetting;
|
import com.ruoyi.admin.request.WithdrawExportRequest;
|
import com.ruoyi.admin.vo.UserWithdrawRecordVO;
|
import com.ruoyi.common.core.domain.R;
|
|
import javax.servlet.http.HttpServletResponse;
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 用户提现记录表 服务类
|
* </p>
|
*
|
* @author hjl
|
* @since 2024-05-29
|
*/
|
public interface WithdrawService extends IService<Withdraw> {
|
|
/**
|
* excel模板导出
|
*
|
* @param exportRequest 提现记录
|
* @param response 响应体
|
* @return 导出结果
|
*/
|
R<String> excelExport(WithdrawExportRequest exportRequest, HttpServletResponse response);
|
|
/**
|
* 获取用户提现金额
|
*
|
* @param cityList 城市集合
|
* @return 总金额
|
*/
|
BigDecimal withdrawalTotalMoney(List<String> cityList);
|
|
/**
|
* 年度查询
|
*
|
* @param cityList 城市集合
|
* @return 年度提现总额
|
*/
|
BigDecimal withdrawalTotalMoneyByYear(List<String> cityList);
|
|
/**
|
* 月度查询
|
*
|
* @param cityList 城市列表
|
* @return 年度提现总额
|
*/
|
BigDecimal withdrawalTotalMoneyByMonth(List<String> cityList);
|
|
/**
|
* 用户所关联提现记录分页列表
|
*
|
* @param userId 用户id
|
* @param page 分页参数
|
* @return 分页列表
|
*/
|
IPage<UserWithdrawRecordVO> withdrawList(Integer userId, Page<UserWithdrawRecordVO> page);
|
|
/**
|
* 关闭/开启审核
|
*
|
* @param enableProcess 关闭/开启审核
|
* @return 操作结果
|
*/
|
Boolean enableProcess(Integer enableProcess);
|
|
/**
|
* 获取全局审核设置
|
*
|
* @return 审核设置
|
*/
|
WithdrawalSetting withdrawProcess();
|
|
/**
|
* 用户所关联提现记录分页列表
|
*
|
* @param nickname 用户名称
|
* @param userPhone 用户手机号
|
* @param applyForTime 申请开始时间
|
* @param state 审核状态
|
* @param page 分页
|
* @return 分页列表
|
*/
|
IPage<UserWithdrawRecordVO> withdrawPage(String nickname, String userPhone, String applyForTime,
|
Integer state, Page<UserWithdrawRecordVO> page);
|
|
/**
|
* 提现审批通过,微信打款
|
*
|
* @param user 下单用户
|
* @param order 订单信息
|
* @return 打款结果
|
*/
|
Boolean confirmWithdraw(User user, Order order);
|
}
|