| | |
| | | import com.dsh.account.entity.RechargeRecords; |
| | | import com.dsh.account.entity.TAppUser; |
| | | import com.dsh.account.enums.RechargeRecordEnum; |
| | | import com.dsh.account.feignclient.competition.DeductionCompetitionsClient; |
| | | import com.dsh.account.feignclient.competition.model.PaymentCompetition; |
| | | import com.dsh.account.feignclient.course.CoursePaymentClient; |
| | | import com.dsh.account.feignclient.course.model.TCoursePackagePayment; |
| | | import com.dsh.account.feignclient.other.RechargeConfigClient; |
| | |
| | | private CoursePaymentClient cpClient; |
| | | |
| | | @Autowired |
| | | private DeductionCompetitionsClient deducClient; |
| | | |
| | | @Autowired |
| | | private PayMoneyUtil payMoneyUtil; |
| | | |
| | | |
| | |
| | | RechargeDetailsVo vo = new RechargeDetailsVo(); |
| | | List<RechargeDetailsVo.RechargesDetail> details = new ArrayList<>(); |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM-dd HH:mm"); |
| | | // TODO: 2023/7/11 充值明细查询 |
| | | |
| | | Date monthStart = null; |
| | | Date monthEnd = null; |
| | | if (StringUtils.hasText(yearMonth)) { |
| | |
| | | vo.setWpGold(0); |
| | | } |
| | | // 1.赛事报名 |
| | | |
| | | List<PaymentCompetition> playPaiFGoldPayRecord = deducClient.getPlayPaiFGoldPayRecord(appUserId); |
| | | if (playPaiFGoldPayRecord.size() > 0 ){ |
| | | for (PaymentCompetition competition : playPaiFGoldPayRecord) { |
| | | RechargeDetailsVo.RechargesDetail consumeDetail = new RechargeDetailsVo.RechargesDetail(); |
| | | consumeDetail.setConsumeName(RechargeRecordEnum.EVENT_REGISTRATION.getMsg() ); |
| | | consumeDetail.setConsumeTime(simpleDateFormat.format(competition.getInsertTime())); |
| | | consumeDetail.setConsumeAmount("-" + competition.getAmount()); |
| | | details.add(consumeDetail); |
| | | } |
| | | } |
| | | // 2.课包购买 |
| | | List<TCoursePackagePayment> appuserCourseList = cpClient.getAppuserCourseList(appUserId); |
| | | if (appuserCourseList.size() > 0){ |