| | |
| | | if (null == uid) { |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | if(!StringUtils.hasLength(lon)){ |
| | | return ResultUtil.success(new ArrayList<>()); |
| | | } |
| | | if (lon.equals("0.0")){ |
| | | return ResultUtil.success(new ArrayList<>()); |
| | | |
| | | } |
| | | List<CouponListVo> listVos = userCouponService.querySiteCouponList(uid, siteId, price, lon, lat); |
| | | return ResultUtil.success(listVos); |
| | | } catch (Exception e) { |
| | |
| | | List<VipDetail> list = vipDetailService.lambdaQuery().eq(VipDetail::getVipPaymentId, id).list(); |
| | | for (VipDetail vipDetail : list) { |
| | | vipDetail.setStatus(3); |
| | | if (vipDetail.getType()==1){ |
| | | // 将优惠券修改为过期 |
| | | UserCoupon userCoupon = userCouponService.getById(vipDetail.getUserCouponId()); |
| | | userCoupon.setUserId(null); |
| | | userCoupon.setStatus(3); |
| | | userCouponService.updateById(userCoupon); |
| | | } |
| | | } |
| | | vipDetailService.updateBatchById(list); |
| | | } |