| | |
| | | PayVO payVO = new PayVO(); |
| | | payVO.setOrderId(tVipOrder.getId()); |
| | | payVO.setId(id); |
| | | |
| | | |
| | | return R.ok(payVO); |
| | | // switch (payType) { |
| | | // case 1: |
| | | // return payMoneyUtil.weixinpay |
| | | // ("购买会员", "", |
| | | // id + "_" + tVipOrder.getId() + "_" + |
| | | // UUIDUtil.getRandomCode(8), |
| | | // tVipOrder.getMoney().toString(), |
| | | // "/base/wxPayBuyVip", "APP", ""); |
| | | // case 2: |
| | | // return payMoneyUtil.alipay |
| | | // ("购买会员", |
| | | // "购买会员下单支付", |
| | | // "", |
| | | // id + "_" + tVipOrder.getId() + "_" + |
| | | // UUIDUtil.getRandomCode(8), |
| | | // tVipOrder.getMoney().toString(), |
| | | // "/base/aliPayBuyVip"); |
| | | // } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | List<TStudy> studyList = studyService.lambdaQuery().eq(TStudy::getDisabled, 0) |
| | | .eq(TStudy::getType, Constants.ONE) |
| | | .orderByAsc(TStudy::getWeek).list(); |
| | | |
| | | int size = studyService.residueWeek(studyRecord, studyList); |
| | | studyRecord.setSurplus(size); |
| | | res.setSurplus(studyRecord.getSurplus()+""); |
| | | res.setTotalHours(studyRecord.getTotalStudy().doubleValue()); |
| | | res.setTodayHours(studyRecord.getTodayStudy().doubleValue()); |