mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
del 查询今日提现金额
This commit is contained in:
@@ -44,6 +44,4 @@ public interface ClearingWithdrawInfoService{
|
|||||||
|
|
||||||
BigDecimal queryTotalWithdraw(String merchantId);
|
BigDecimal queryTotalWithdraw(String merchantId);
|
||||||
|
|
||||||
// 获取今日提现总额
|
|
||||||
BigDecimal queryTodayWithdrawalAmount(String merchantId);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,36 +161,4 @@ public class ClearingWithdrawInfoServiceImpl implements ClearingWithdrawInfoServ
|
|||||||
return clearingWithdrawInfoMapper.queryTotalWithdraw(merchantId);
|
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<WithdrawInfoVO> list = (List<WithdrawInfoVO>) pageResponse.getList();
|
|
||||||
for (WithdrawInfoVO vo : list) {
|
|
||||||
// 如果applicationTime在当天,则加到todayWithdrawalAmount中
|
|
||||||
if (DateUtils.isToday(vo.getApplicationTime())) {
|
|
||||||
todayWithdrawalAmount = todayWithdrawalAmount.add(vo.getCashAmt());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return todayWithdrawalAmount;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user