| | |
| | | import com.xcong.excoin.common.LoginUserUtils;
|
| | | import com.xcong.excoin.common.enumerates.CoinTypeEnum;
|
| | | import com.xcong.excoin.common.response.Result;
|
| | | import com.xcong.excoin.modules.home.dao.MemberPaymentMethodDao;
|
| | | import com.xcong.excoin.modules.home.dao.MemberQuickBuySaleDao;
|
| | | import com.xcong.excoin.modules.home.dto.MemberQuickBuySaleCommitDto;
|
| | | import com.xcong.excoin.modules.home.dto.MemberQuickBuySaleDto;
|
| | | import com.xcong.excoin.modules.home.entity.MemberPaymentMethodEntity;
|
| | | import com.xcong.excoin.modules.home.entity.MemberQuickBuySaleEntity;
|
| | | import com.xcong.excoin.modules.home.mapper.MemberQuickBuySaleEntityMapper;
|
| | | import com.xcong.excoin.modules.home.service.MemberQuickBuySaleService;
|
| | | import com.xcong.excoin.modules.home.vo.MemberQuickBuySaleDetailVo;
|
| | | import com.xcong.excoin.modules.home.vo.MemberQuickBuySaleVo;
|
| | | import com.xcong.excoin.modules.member.dao.MemberDao;
|
| | | import com.xcong.excoin.modules.member.dao.MemberPaymentMethodDao;
|
| | | import com.xcong.excoin.modules.member.dao.MemberWalletCoinDao;
|
| | | 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.platform.dao.PlatformPaymentMethodDao;
|
| | | import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity;
|
| | |
| | | if(!StringUtils.isEmpty(type)) {
|
| | | queryWrapper.eq("order_type", type);
|
| | | }
|
| | | queryWrapper.orderByDesc("id");
|
| | | List<MemberQuickBuySaleEntity> memberQuickBuySaleEntityList = memberQuickBuySaleDao.selectList(queryWrapper);
|
| | | List<MemberQuickBuySaleDetailVo> memberQuickBuySaleDetailVoList = MemberQuickBuySaleEntityMapper.INSTANCE.entityListToVoList(memberQuickBuySaleEntityList);
|
| | | return Result.ok(memberQuickBuySaleDetailVoList);
|
| | |
| | | public Result cancelRecharge(Long id) {
|
| | | // 获取当前登录用户
|
| | | MemberEntity member = LoginUserUtils.getAppLoginUser();
|
| | | MemberQuickBuySaleEntity memberQuickBuySaleEntity = memberQuickBuySaleDao.selectByIdAndMemberId(id,member.getId());
|
| | | MemberQuickBuySaleEntity memberQuickBuySaleEntity = memberQuickBuySaleDao.selectByIdAndMemberId(member.getId(),id);
|
| | | memberQuickBuySaleEntity.setOrderStatus(MemberQuickBuySaleEntity.CHARGE_STATUS_CANCEL_USER);
|
| | | memberQuickBuySaleDao.updateById(memberQuickBuySaleEntity);
|
| | |
|