From 80498404da07f8ea6a91c95c99135a9bcc4d82cb Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Tue, 18 Nov 2025 14:09:46 +0800 Subject: [PATCH] =?UTF-8?q?del=20=E6=9F=A5=E8=AF=A2=E4=BB=8A=E6=97=A5?= =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/ClearingWithdrawInfoService.java | 2 -- .../impl/ClearingWithdrawInfoServiceImpl.java | 32 ------------------- 2 files changed, 34 deletions(-) diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/ClearingWithdrawInfoService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/ClearingWithdrawInfoService.java index 4ae1855c1..2717c7560 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/ClearingWithdrawInfoService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/ClearingWithdrawInfoService.java @@ -44,6 +44,4 @@ public interface ClearingWithdrawInfoService{ BigDecimal queryTotalWithdraw(String merchantId); - // 获取今日提现总额 - BigDecimal queryTodayWithdrawalAmount(String merchantId); } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ClearingWithdrawInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ClearingWithdrawInfoServiceImpl.java index 1cb4c9327..15c82f981 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ClearingWithdrawInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ClearingWithdrawInfoServiceImpl.java @@ -161,36 +161,4 @@ public class ClearingWithdrawInfoServiceImpl implements ClearingWithdrawInfoServ return clearingWithdrawInfoMapper.queryTotalWithdraw(merchantId); } - /** - * 查询今日提现总额 - * @param merchantId - * @return - */ - @Override - public BigDecimal queryTodayWithdrawalAmount(String merchantId) { - BigDecimal todayWithdrawalAmount = BigDecimal.ZERO; - QueryWithdrawListDTO dto = QueryWithdrawListDTO.builder() - .merchantId(merchantId) - .pageNum(1) - .pageSize(10) - .build(); - PageResponse pageResponse = null; - try { - pageResponse = queryWithdrawList(dto); - } catch (BaseAdaPayException e) { - throw new RuntimeException(e); - } - - if (pageResponse != null && pageResponse.getList() != null && !pageResponse.getList().isEmpty()) { - List list = (List) pageResponse.getList(); - for (WithdrawInfoVO vo : list) { - // 如果applicationTime在当天,则加到todayWithdrawalAmount中 - if (DateUtils.isToday(vo.getApplicationTime())) { - todayWithdrawalAmount = todayWithdrawalAmount.add(vo.getCashAmt()); - } - } - } - return todayWithdrawalAmount; - } - }