| | |
| | | import com.xcong.excoin.modules.member.entity.MemberEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberPaymentMethodEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity; |
| | | import com.xcong.excoin.modules.otc.dao.OtcBlackListDao; |
| | | import com.xcong.excoin.modules.otc.dao.OtcMarketBussinessDao; |
| | | import com.xcong.excoin.modules.otc.dao.OtcOrderDao; |
| | | import com.xcong.excoin.modules.otc.dto.EntrustOrderAddDto; |
| | | import com.xcong.excoin.modules.otc.dto.EntrustOrderListDto; |
| | | import com.xcong.excoin.modules.otc.entity.OtcBlackList; |
| | | import com.xcong.excoin.modules.otc.entity.OtcEntrustOrder; |
| | | import com.xcong.excoin.modules.otc.dao.OtcEntrustOrderDao; |
| | | import com.xcong.excoin.modules.otc.entity.OtcMarketBussiness; |
| | |
| | | private final MemberWalletCoinDao memberWalletCoinDao; |
| | | private final OtcOrderDao otcOrderDao; |
| | | private final CommonService commonService; |
| | | private final OtcBlackListDao otcBlackListDao; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | public IPage<EntrustListVo> findEntrustListInPage(EntrustOrderListDto dto) { |
| | | MemberEntity member = LoginUserUtils.getAppLoginUser(); |
| | | Page<EntrustListVo> page = new Page<>(dto.getPageNum(), dto.getPageSize()); |
| | | dto.setMemberId(member.getId()); |
| | | List<OtcBlackList> blackLists = otcBlackListDao.selectBlackListByMemberId(member.getId()); |
| | | if (CollUtil.isNotEmpty(blackLists)) { |
| | | dto.setMemberId(member.getId()); |
| | | } |
| | | return this.baseMapper.selectEntrustListInPage(dto, page); |
| | | } |
| | | |