mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 查询提现记录
This commit is contained in:
@@ -39,7 +39,6 @@ import com.jsowell.pile.domain.ClearingWithdrawInfo;
|
||||
import com.jsowell.pile.domain.MemberBasicInfo;
|
||||
import com.jsowell.pile.dto.PayOrderDTO;
|
||||
import com.jsowell.pile.service.*;
|
||||
import com.jsowell.pile.vo.web.WithdrawInfoVO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -551,11 +550,12 @@ public class AdapayService {
|
||||
vo.setYesterdayRevenue(yesterdayRevenue);
|
||||
|
||||
// 累计提现金额
|
||||
BigDecimal totalWithdraw = BigDecimal.ZERO;
|
||||
List<WithdrawInfoVO> withdrawInfoVOS = clearingWithdrawInfoService.selectByMerchantId(merchantId);
|
||||
if (CollectionUtils.isNotEmpty(withdrawInfoVOS)) {
|
||||
totalWithdraw = withdrawInfoVOS.stream().map(WithdrawInfoVO::getCashAmt).reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
}
|
||||
// BigDecimal totalWithdraw = BigDecimal.ZERO;
|
||||
// List<WithdrawInfoVO> withdrawInfoVOS = clearingWithdrawInfoService.selectByMerchantId(merchantId);
|
||||
// if (CollectionUtils.isNotEmpty(withdrawInfoVOS)) {
|
||||
// totalWithdraw = withdrawInfoVOS.stream().map(WithdrawInfoVO::getCashAmt).reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
// }
|
||||
BigDecimal totalWithdraw = clearingWithdrawInfoService.queryTotalWithdraw(merchantId);
|
||||
vo.setTotalWithdraw(totalWithdraw);
|
||||
return vo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user