| | |
| | | List<PaymentCompetition> playPaiFGoldPayRecord = deducClient.getPlayPaiFGoldPayRecord(appUserId); |
| | | if (playPaiFGoldPayRecord.size() > 0 ){ |
| | | for (PaymentCompetition competition : playPaiFGoldPayRecord) { |
| | | RechargesDetail consumeDetail = new RechargesDetail(); |
| | | consumeDetail.setConsumeName(RechargeRecordEnum.EVENT_REGISTRATION.getMsg() ); |
| | | consumeDetail.setConsumeTime(simpleDateFormat.format(competition.getInsertTime())); |
| | | consumeDetail.setConsumeAmount("-" + competition.getAmount()); |
| | | consumeDetail.setRecordId(2); |
| | | details.add(consumeDetail); |
| | | if (competition.getPayStatus()==2) { |
| | | RechargesDetail consumeDetail = new RechargesDetail(); |
| | | consumeDetail.setConsumeName(RechargeRecordEnum.EVENT_REGISTRATION.getMsg()); |
| | | consumeDetail.setConsumeTime(simpleDateFormat.format(competition.getInsertTime())); |
| | | consumeDetail.setConsumeAmount("-" + competition.getAmount()); |
| | | consumeDetail.setRecordId(2); |
| | | details.add(consumeDetail); |
| | | }else { |
| | | |
| | | |
| | | RechargesDetail consumeDetail1 = new RechargesDetail(); |
| | | consumeDetail1.setConsumeName(RechargeRecordEnum.CANCEL_EVENT_REGISTRATION.getMsg()); |
| | | consumeDetail1.setConsumeTime(simpleDateFormat.format(competition.getRefundTime())); |
| | | consumeDetail1.setConsumeAmount("+" + competition.getAmount()); |
| | | consumeDetail1.setRecordId(1); |
| | | details.add(consumeDetail1); |
| | | |
| | | RechargesDetail consumeDetail = new RechargesDetail(); |
| | | consumeDetail.setConsumeName(RechargeRecordEnum.EVENT_REGISTRATION.getMsg()); |
| | | consumeDetail.setConsumeTime(simpleDateFormat.format(competition.getInsertTime())); |
| | | consumeDetail.setConsumeAmount("-" + competition.getAmount()); |
| | | consumeDetail.setRecordId(2); |
| | | details.add(consumeDetail); |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
| | | // 2.课包购买 |
| | |
| | | records.setOrderNumber(tradeNo); |
| | | rereMapper.updateById(records); |
| | | |
| | | // RechargeRecords rechargeRecords = rereMapper.selectOne(new QueryWrapper<RechargeRecords>() |
| | | // .eq("code", code)); |
| | | // if (rechargeRecords.getPayStatus() == 2){ |
| | | // break; |
| | | // } |
| | | // |
| | | // TAppUser tAppUser = tappMapper.selectById(rechargeRecords.getAppUserId()); |
| | | // tAppUser.setPlayPaiCoins(null == tAppUser.getPlayPaiCoins()? rechargeRecords.getPlayPaiCoins(): tAppUser.getPlayPaiCoins() +rechargeRecords.getPlayPaiCoins() ); |
| | | // tappMapper.updateById(tAppUser); |
| | | RechargeRecords rechargeRecords = rereMapper.selectOne(new QueryWrapper<RechargeRecords>() |
| | | .eq("code", code)); |
| | | if (rechargeRecords.getPayStatus() == 2){ |
| | | TAppUser tAppUser = tappMapper.selectById(rechargeRecords.getAppUserId()); |
| | | tAppUser.setPlayPaiCoins(null == tAppUser.getPlayPaiCoins()? rechargeRecords.getPlayPaiCoins(): tAppUser.getPlayPaiCoins() +rechargeRecords.getPlayPaiCoins() ); |
| | | tappMapper.updateById(tAppUser); |
| | | break; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | break; |