package com.mzl.flower.service.impl.wallet;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.mzl.flower.dto.request.wallet.QueryWalletAmountDTO;
|
import com.mzl.flower.dto.request.wallet.QueryWalletReduceDTO;
|
import com.mzl.flower.dto.response.wallet.WalletReduceVO;
|
import com.mzl.flower.dto.response.wallet.WalletWithdrawRecordVO;
|
import com.mzl.flower.mapper.wallet.WalletReduceMapper;
|
import com.mzl.flower.service.wallet.WalletReduceService;
|
import com.mzl.flower.service.wallet.WalletService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
|
@Service
|
public class WalletReduceServiceImpl implements WalletReduceService {
|
|
@Autowired
|
private WalletReduceMapper walletReduceMapper;
|
|
@Autowired
|
private WalletService walletService;
|
|
@Override
|
public Page<WalletReduceVO> getPage(Page page, QueryWalletReduceDTO dto) {
|
// 设置查询的时间为钱包的上线时间
|
dto.setWalletOnlineTime(walletService.getWalletOnLineTime());
|
List<WalletReduceVO> list = walletReduceMapper.getPage(page,dto);
|
page.setRecords(list);
|
return page;
|
}
|
|
@Override
|
public BigDecimal getCheckReduceAmount(QueryWalletAmountDTO queryWalletAmountDTO) {
|
|
return walletReduceMapper.getCheckReduceAmount(queryWalletAmountDTO);
|
}
|
|
@Override
|
public BigDecimal getSaleReduceAmount(QueryWalletAmountDTO queryWalletAmountDTO) {
|
return walletReduceMapper.getSaleReduceAmount(queryWalletAmountDTO);
|
}
|
|
@Override
|
public BigDecimal getStationFeeAmount(QueryWalletAmountDTO queryWalletAmountDTO) {
|
return walletReduceMapper.getStationFeeAmount(queryWalletAmountDTO);
|
}
|
}
|