| | |
| | | }else { |
| | | split = orderGood.getLLens().split(","); |
| | | } |
| | | TBrand one1 = brandService.lambdaQuery().eq(TBrand::getName, orderGood.getBrandName()) |
| | | TBrand brand = brandService.lambdaQuery().eq(TBrand::getName, orderGood.getBrandName()) |
| | | .eq(TBrand::getType, 2).one(); |
| | | TLensSeries lensSeries = lensSeriesService.lambdaQuery().eq(TLensSeries::getName, orderGood.getSeriesName()) |
| | | .eq(TLensSeries::getBrandId, one1.getId()).one(); |
| | | .eq(TLensSeries::getBrandId, brand.getId()).one(); |
| | | TLensGoods one = lensGoodsService.lambdaQuery() |
| | | .eq(StringUtils.hasLength(orderGood.getSeriesName()),TLensGoods::getSeriesId, lensSeries.getId()) |
| | | .eq(StringUtils.hasLength(orderGood.getRefractiveIndex()),TLensGoods::getRefractiveIndex, orderGood.getRefractiveIndex()) |
| | |
| | | return ApiResult.failed("优惠券不存在"); |
| | | } |
| | | List<TCouponReceive> couponReceives = couponReceiveService.lambdaQuery() |
| | | .eq(TCouponReceive::getId, dto.getUserId()) |
| | | .eq(TCouponReceive::getUserId, dto.getUserId()) |
| | | .eq(TCouponReceive::getCouponId, couponReceive.getCouponId()) |
| | | .orderByDesc(TCouponReceive::getCreateTime).list(); |
| | | if (couponReceives.isEmpty())return ApiResult.failed("优惠券不存在"); |