|
|
|
@ -12,6 +12,7 @@ import com.qniao.dam.domian.aggregate.walletaccount.constant.IdentityTypeEnum; |
|
|
|
import com.qniao.dam.domian.aggregate.walletaccount.constant.TradeTypeEnum; |
|
|
|
import com.qniao.dam.infrastructure.persistent.dao.domain.WalletAccountRecordDao; |
|
|
|
import com.qniao.dam.infrastructure.persistent.dao.view.WalletAccountViewDao; |
|
|
|
import com.qniao.dam.query.matchmaker.MatchmakerQueryService; |
|
|
|
import com.qniao.dam.query.walletaccount.WalletAccountQueryService; |
|
|
|
import com.qniao.dam.domain.aggregate.walletaccount.entity.WalletAccount; |
|
|
|
import com.qniao.dam.infrastructure.persistent.dao.domain.WalletAccountDao; |
|
|
|
@ -35,6 +36,8 @@ public class WalletAccountQueryServiceImpl implements WalletAccountQueryService |
|
|
|
private WalletAccountViewDao walletAccountViewDao; |
|
|
|
@Resource |
|
|
|
private WalletAccountRecordDao walletAccountRecordDao; |
|
|
|
@Resource |
|
|
|
private MatchmakerQueryService matchmakerQueryService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public WalletAccount queryByUserId(Long userId) { |
|
|
|
@ -94,7 +97,13 @@ public class WalletAccountQueryServiceImpl implements WalletAccountQueryService |
|
|
|
|
|
|
|
@Override |
|
|
|
public IPage<UsePageWalletAccountRecordByOperatorVo> pageWalletAccountRecordByOperator(PageUtil pageUtil, UsePageWalletAccountRecordByOperatorQueryParams queryParams) { |
|
|
|
return walletAccountViewDao.pageWalletAccountRecordByOperator(pageUtil.toPageWithoutOrders(),queryParams); |
|
|
|
IPage<UsePageWalletAccountRecordByOperatorVo> page = walletAccountViewDao.pageWalletAccountRecordByOperator(pageUtil.toPageWithoutOrders(), queryParams); |
|
|
|
if (page.getRecords().size() > 0) { |
|
|
|
page.getRecords().forEach(record -> { |
|
|
|
record.setMatchmakerLevel(matchmakerQueryService.queryLevelByUserId(record.getMatchmakerUserId())); |
|
|
|
}); |
|
|
|
} |
|
|
|
return page; |
|
|
|
} |
|
|
|
|
|
|
|
private BigDecimal countUnavailableWithdrawBalance(Long walletAccountId, LocalDate date, int month) { |
|
|
|
|