|
@@ -20,6 +20,7 @@ import com.yonge.cooleshow.biz.dal.vo.UserOrderVo;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.res.OrderCreateRes;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.res.OrderPayRes;
|
|
|
import com.yonge.cooleshow.biz.dal.wrapper.PaymentDivMemberRecordWrapper;
|
|
|
+import com.yonge.cooleshow.biz.dal.wrapper.UserPaymentOrderWrapper;
|
|
|
import com.yonge.cooleshow.biz.dal.wrapper.coupon.CouponOrderWrapper;
|
|
|
import com.yonge.cooleshow.common.constant.SysConfigConstant;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
@@ -113,6 +114,8 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
|
|
|
private ActivityPlanService activityPlanService;
|
|
|
|
|
|
@Autowired
|
|
|
+ private RedisCacheService redisCacheService;
|
|
|
+ @Autowired
|
|
|
private ActivityUserRewardService activityUserRewardService;
|
|
|
@Autowired
|
|
|
private CouponInfoService couponInfoService;
|
|
@@ -476,6 +479,20 @@ public class UserOrderServiceImpl extends ServiceImpl<UserOrderDao, UserOrder> i
|
|
|
if (null != userOrderVo) {
|
|
|
userOrderVo.setOrderDetailList(orderDetailService.getOrderDetilListByOrderNo(userOrderVo.getOrderNo()));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ // 查询用户下单配置
|
|
|
+ String ret = redisCacheService.getUserOrderConfig(query.getUserId().toString(), query.getGoodType());
|
|
|
+ if (!StringUtils.isEmpty(ret) && userOrderVo != null) {
|
|
|
+ UserPaymentOrderWrapper.PaymentOrderReqConfig config = UserPaymentOrderWrapper.PaymentOrderReqConfig
|
|
|
+ .from(ret);
|
|
|
+ UserPaymentOrderWrapper.PaymentConfig build = UserPaymentOrderWrapper.PaymentConfig.builder()
|
|
|
+ .orderNo(userOrderVo.getOrderNo())
|
|
|
+ .paymentConfig(config)
|
|
|
+ .paymentType(userOrderVo.getPaymentVendor())
|
|
|
+ .build();
|
|
|
+ userOrderVo.setPaymentConfig(build);
|
|
|
+ }
|
|
|
return HttpResponseResult.succeed(userOrderVo);
|
|
|
}
|
|
|
|