| | |
| | | import com.ruoyi.order.service.TShoppingOrderService; |
| | | import com.ruoyi.common.core.dto.ExchangeDto; |
| | | import com.ruoyi.common.core.utils.OrderCodeUtil; |
| | | import com.ruoyi.other.api.domain.TCoupon; |
| | | import com.ruoyi.other.api.domain.TGoods; |
| | | import com.ruoyi.other.api.feignClient.CouponClient; |
| | | import com.ruoyi.other.api.feignClient.GoodsClient; |
| | | import com.ruoyi.payment.api.feignClient.AliPaymentClient; |
| | |
| | | byId.setReceivingAddress(data.getAddress()); |
| | | } |
| | | } |
| | | switch (byId.getOrderType()){ |
| | | case 1: |
| | | TGoods data = goodsClient.getGoodsById(byId.getGoodsId()).getData(); |
| | | if (data!=null){ |
| | | byId.setName(data.getName()); |
| | | } |
| | | break; |
| | | case 2: |
| | | TCoupon data1 = couponClient.getCouponById1(byId.getCouponId()).getData(); |
| | | if (data1!=null){ |
| | | byId.setName(data1.getName()); |
| | | } |
| | | break; |
| | | } |
| | | return AjaxResult.success(byId); |
| | | } |
| | | @Resource |