|
@@ -66,6 +66,7 @@ import com.yonge.toolset.payment.core.service.PaymentClient;
|
|
|
import com.yonge.toolset.payment.util.DistributedLock;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.joda.time.DateTime;
|
|
|
import org.redisson.api.RedissonClient;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -337,7 +338,10 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
|
|
|
//验证参数,必须验证参数
|
|
|
BigDecimal actualPrice = BigDecimal.ZERO;
|
|
|
// 订单优惠券信息
|
|
|
- CouponOrderWrapper couponOrderWrapper = CouponOrderWrapper.builder().couponInfos(Lists.newArrayList()).build();
|
|
|
+ CouponOrderWrapper couponOrderWrapper = CouponOrderWrapper.builder()
|
|
|
+ .discountedPrices(0D)
|
|
|
+ .couponInfos(Lists.newArrayList())
|
|
|
+ .build();
|
|
|
|
|
|
for (OrderReq.OrderReqInfo info : orderReq.getOrderInfos()) {
|
|
|
Function<OrderReq.OrderReqInfo, HttpResponseResult<OrderCreateRes>> createFunction = orderCreate.get(info.getGoodType());
|