| | |
| | | Store store = storeService.getById(site.getStoreId()); |
| | | QuerySiteInfoVo querySiteInfoVo = new QuerySiteInfoVo(); |
| | | querySiteInfoVo.setId(site.getId()); |
| | | querySiteInfoVo.setTypeName(site.getTypeName()); |
| | | querySiteInfoVo.setName(site.getName()); |
| | | querySiteInfoVo.setSiteTypeName(siteType.getName()); |
| | | querySiteInfoVo.setStoreName(store.getName()); |
| | |
| | | |
| | | //校验优惠券 |
| | | Long couponId = reservationSite.getCouponId(); |
| | | if (couponId!=null && couponId != 0){ |
| | | |
| | | if(null != couponId && reservationSite.getPayType() != 3){ |
| | | UserCoupon userCoupon = userCouponClient.queryUserCouponById(new QueryUserCouponByIdAndUserId(reservationSite.getCouponId(),uid)); |
| | | |
| | | |
| | | if(userCoupon.getStatus() == 2){ |
| | | return ResultUtil.error("优惠券已被核销"); |
| | | } |
| | |
| | | userCoupon.setStatus(2); |
| | | userCouponClient.updateUserCoupon(userCoupon); |
| | | } |
| | | } |
| | | |
| | | |
| | | SiteBooking siteBooking = new SiteBooking(); |