44323
2023-11-27 aa925d851857f50eff0556411366690d9a78a0e5
cloud-server-competition/src/main/java/com/dsh/competition/service/impl/PaymentCompetitionServiceImpl.java
@@ -69,12 +69,12 @@
    private PaymentCompetitionMapper paymentCompetitionMapper;
    @Resource
    private CompetitionMapper competitionMapper;
    /**
     * 获取我的报名赛事记录
     *
     * @param uid
     * @param type
     * @param pageSize
@@ -99,6 +99,7 @@
    /**
     * 获取我报名的赛事详情
     *
     * @param id
     * @return
     * @throws Exception
@@ -178,7 +179,6 @@
        competitionInfo.setStoreInfos(objects);
        List<ParticipantVo> participant = new ArrayList<>();
        List<UserCompetition> list = userCompetitionService.list(new QueryWrapper<UserCompetition>().eq("paymentCompetitionId", paymentCompetition.getId()));
        List<Integer> collect = list.stream().map(UserCompetition::getParticipantId).collect(Collectors.toList());
@@ -227,6 +227,7 @@
    /**
     * 取消赛事报名
     *
     * @param id
     * @return
     * @throws Exception
@@ -272,7 +273,7 @@
            paymentCompetition.setAppUserId(null);
            this.updateById(paymentCompetition);
            competition.setApplicantsNumber(competition.getApplicantsNumber() - 1);
//            competition.setApplicantsNumber(competition.getApplicantsNumber() - 1);
            competitionService.updateById(competition);
        }
        if(paymentCompetition.getPayType() == 3){//玩湃币支付
@@ -286,7 +287,7 @@
            paymentCompetition.setAppUserId(null);
            this.updateById(paymentCompetition);
            competition.setApplicantsNumber(competition.getApplicantsNumber() - 1);
//            competition.setApplicantsNumber(competition.getApplicantsNumber() - 1);
            competitionService.updateById(competition);
        }
        if(paymentCompetition.getPayType() == 4){//课程支付
@@ -307,7 +308,7 @@
            paymentCompetition.setAppUserId(null);
            this.updateById(paymentCompetition);
            competition.setApplicantsNumber(competition.getApplicantsNumber() - 1);
//            competition.setApplicantsNumber(competition.getApplicantsNumber() - 1);
            competitionService.updateById(competition);
        }
        return ResultUtil.success();