| | |
| | | import com.mzl.flower.dto.PriceDTO; |
| | | import com.mzl.flower.dto.request.menber.MemberGrowthRecordDTO; |
| | | import com.mzl.flower.dto.request.payment.*; |
| | | import com.mzl.flower.dto.response.coupon.CouponRecordVO; |
| | | import com.mzl.flower.dto.response.flower.FlowerCartListDTO; |
| | | import com.mzl.flower.dto.response.flower.FlowerCartListWrapDTO; |
| | | import com.mzl.flower.dto.response.flower.FlowerDTO; |
| | |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | |
| | | List<OrderPointGoodsListDTO> pointGoodsList = orderMapper.getPointGoodsList(id); |
| | | dto.setPointGoodsList(pointGoodsList); |
| | | |
| | | //判断优惠券ID是否为空 用户优惠券id |
| | | if(StringUtils.isNotBlank(o.getMemberCouponId())){ |
| | | CouponRecordVO couponRecordVO = couponRecordService.getCouponRecordById(o.getMemberCouponId()); |
| | | if(!ObjectUtils.isEmpty(couponRecordVO)){ |
| | | dto.setCouponDiscountType(couponRecordVO.getCouponDiscountType()); |
| | | dto.setMinOrderAmount("满"+couponRecordVO.getMinOrderAmount()); |
| | | } |
| | | } |
| | | |
| | | return dto; |
| | | } |
| | | |