update 查询提现记录

This commit is contained in:
2024-01-05 15:26:22 +08:00
parent 65332f1ed4
commit 29adce0d00
8 changed files with 376 additions and 120 deletions

View File

@@ -2,17 +2,16 @@ package com.jsowell.web.controller.pile;
import com.alibaba.fastjson2.JSON;
import com.huifu.adapay.core.exception.BaseAdaPayException;
import com.jsowell.adapay.dto.AdapayMemberInfoDTO;
import com.jsowell.adapay.dto.SettleAccountDTO;
import com.jsowell.adapay.dto.UpdateAccountConfigDTO;
import com.jsowell.adapay.dto.WithdrawDTO;
import com.jsowell.adapay.dto.*;
import com.jsowell.adapay.service.AdapayService;
import com.jsowell.adapay.vo.AdapayAccountBalanceVO;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.core.domain.AjaxResult;
import com.jsowell.common.core.page.PageResponse;
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.service.ClearingWithdrawInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -28,6 +27,9 @@ public class AdapayMemberController extends BaseController {
@Autowired
private AdapayService adapayService;
@Autowired
private ClearingWithdrawInfoService clearingWithdrawInfoService;
/**
* 创建结算账户
* http://localhost:8080/adapay/member/createSettleAccount
@@ -54,6 +56,7 @@ public class AdapayMemberController extends BaseController {
logger.info("创建结算账户接口 result:{}", JSON.toJSONString(result));
return result;
}
/**
* 查询汇付会员接口
* http://localhost:8080/adapay/member/selectAdapayMember
@@ -120,6 +123,26 @@ public class AdapayMemberController extends BaseController {
return result;
}
/**
* 查询提现记录 分页
* http://localhost:8080/adapay/member/queryWithdrawList
*/
@PostMapping("/queryWithdrawList")
public AjaxResult queryWithdrawList(@RequestBody QueryWithdrawListDTO dto) {
AjaxResult result;
try {
PageResponse map = clearingWithdrawInfoService.queryWithdrawList(dto);
result = AjaxResult.success(map);
} catch (BusinessException e) {
logger.error("查询提现记录error", e);
result = AjaxResult.error(e.getMessage());
} catch (Exception e) {
logger.error("查询提现记录error", e);
result = AjaxResult.error();
}
return result;
}
/**
* 修改结算
* http://localhost:8080/adapay/member/updateSettleAccountConfig