| | |
| | | public ExchangeDetailsVo getIntegralExchangeDetails(@RequestBody Integer appUserId) { |
| | | ExchangeDetailsVo detailsVo = new ExchangeDetailsVo(); |
| | | List<ExchangeDetailsResponse> responses = new ArrayList<>(); |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | List<UserPointsMerchandise> pointsMerchandises = upmseService.list(new QueryWrapper<UserPointsMerchandise>() |
| | | .eq("userId", appUserId).eq("payStatus", 2)); |
| | | |
| | |
| | | } |
| | | List<UserCoupon> userCoupons = new ArrayList<>(); |
| | | if (ids.size() > 0) { |
| | | userCoupons = userCouponService.list(new QueryWrapper<UserCoupon>().eq("userId", appUserId).in("couponId", ids)); |
| | | userCoupons = userCouponService.list(new QueryWrapper<UserCoupon>().eq("userId", appUserId).in("couponId", ids) |
| | | .ne("status",3)); |
| | | } |
| | | if (pointsMerchandises.size() > 0) { |
| | | for (UserPointsMerchandise pointsMerchandise : pointsMerchandises) { |
| | |
| | | detailsResponse.setGoodName(vipDetail.getTicketName()); |
| | | detailsResponse.setStartTime(simpleDateFormat.format(vipDetail.getStartTime())); |
| | | detailsResponse.setEndTime(simpleDateFormat.format(vipDetail.getEndTime())); |
| | | detailsResponse.setUseStatus(vipDetail.getStatus()); |
| | | detailsResponse.setUseStatus(vipDetail.getStatus()==1?2:1); |
| | | detailsResponse.setGoodType(3); |
| | | // 表明是会员赠送的门票 |
| | | detailsResponse.setExchangeType(4); |
| | |
| | | PointDetailsVo detailsVo = new PointDetailsVo(); |
| | | |
| | | if (speMercharsId.toString().contains("-1")){ |
| | | // 会员门票 |
| | | // 会员优惠券 |
| | | VipDetail vipDetail = vipDetailService.getById(Math.abs(speMercharsId)); |
| | | if (vipDetail.getType()==1){ |
| | | Coupon coupon = iCouponService.getById(vipDetail.getCouponId()); |