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; - } - }