| | |
| | | switch (vip.getTimeType()) { |
| | | case 1: |
| | | // 天 |
| | | localDateTime.plusDays(time); |
| | | localDateTime = localDateTime.plusDays(time); |
| | | break; |
| | | case 2: |
| | | // 月 |
| | | localDateTime.plusMonths(time); |
| | | localDateTime = localDateTime.plusMonths(time); |
| | | |
| | | break; |
| | | case 3: |
| | | // 年 |
| | | localDateTime.plusYears(time); |
| | | localDateTime = localDateTime.plusYears(time); |
| | | break; |
| | | } |
| | | appUser.setIsVip(1); |
| | |
| | | if (StringUtils.hasLength(couponJson)) { |
| | | grantCoupon.setCouponJson(couponJson); |
| | | } |
| | | grantCoupon.setVipId(vipPayment1.getVipId()); |
| | | grantCoupon.setUserId(vipPayment1.getAppUserId()); |
| | | grantCoupon.setVipPaymentId(vipPayment1.getId()); |
| | | String ticketJson = vipPayment1.getTicketJson(); |