|
|
package com.yohoufo.order.controller;
|
|
|
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.order.model.request.ShoppingRequest;
|
|
|
import com.yohoufo.order.model.response.OrderSubmitResponse;
|
|
|
import com.yohoufo.order.model.response.OrderSummaryResp;
|
|
|
import com.yohoufo.order.model.response.PaymentResponse;
|
|
|
import com.yohoufo.order.service.IBuyerOrderService;
|
|
|
import com.yohoufo.order.service.IShoppingService;
|
|
|
import com.yohoufo.order.service.impl.SellerOrderService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
...
|
...
|
@@ -18,6 +22,13 @@ public class ShoppingController { |
|
|
IShoppingService buyerOrderService;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
SellerOrderService sellerOrderService;
|
|
|
|
|
|
@Autowired
|
|
|
IBuyerOrderService ibuyerOrderService;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 结算
|
|
|
* @return
|
...
|
...
|
@@ -56,8 +67,10 @@ public class ShoppingController { |
|
|
@RequestMapping(params = "method=ufo.order.summary")
|
|
|
public ApiResponse submit(@RequestParam(name = "uid") int uid,
|
|
|
@RequestParam(name = "client_type", required = false) String clientType){
|
|
|
OrderSummaryResp orderSummaryResp1 = sellerOrderService.selectOrderNumByUid(uid);
|
|
|
|
|
|
OrderSummaryResp orderSummaryResp2 = ibuyerOrderService.selectOrderNumByUid(uid);
|
|
|
|
|
|
// OrderSubmitResponse paymentResponse = buyerOrderService.submit(request);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(null).message("提交订单SUCCESS").build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(Lists.newArrayList(orderSummaryResp1, orderSummaryResp2)).message("查询成功").build();
|
|
|
}
|
|
|
} |
...
|
...
|
|