...
|
...
|
@@ -67,6 +67,7 @@ public class BuyerOrderController { |
|
|
public ApiResponse getOrderList(@RequestParam("type") int type,
|
|
|
@RequestParam("uid") int uid,
|
|
|
@RequestParam("tabType") String tabType,
|
|
|
@RequestParam(value = "business_client", required = false,defaultValue = "ufo") String businessClient,
|
|
|
@RequestParam(value = "page", required = false, defaultValue = "1") int page,
|
|
|
@RequestParam(value = "limit", required = false, defaultValue = "10") int limit) {
|
|
|
TabType actor = TabType.getTabType(tabType);
|
...
|
...
|
@@ -80,6 +81,7 @@ public class BuyerOrderController { |
|
|
.limit(limit)
|
|
|
.tabType(tabType)
|
|
|
.actor(actor)
|
|
|
.businessClient(businessClient)
|
|
|
.build();
|
|
|
LOG.info("in ufo.order.list, req {}", orderListRequest);
|
|
|
PageResp<OrderListInfo> orderListInfoRsp;
|
...
|
...
|
@@ -272,6 +274,7 @@ public class BuyerOrderController { |
|
|
@RequestMapping(params = "method=ufo.order.getAllCnt")
|
|
|
public ApiResponse getOrderCnt(@RequestParam(name = "uid") int uid,
|
|
|
@RequestParam("tabType") String tabType,
|
|
|
@RequestParam(value = "business_client", required = false,defaultValue = "ufo") String businessClient,
|
|
|
@RequestParam(name = "client_type", required = false) String clientType){
|
|
|
LOG.info("in ufo.order.getAllCnt, uid {}, clientType is {}", uid, clientType);
|
|
|
TabType actor = TabType.getTabType(tabType);
|
...
|
...
|
@@ -282,6 +285,7 @@ public class BuyerOrderController { |
|
|
.uid(uid)
|
|
|
.tabType(tabType)
|
|
|
.actor(actor)
|
|
|
.businessClient(businessClient)
|
|
|
.build();
|
|
|
OrderCntResp orderCntResp;
|
|
|
switch (actor){
|
...
|
...
|
@@ -311,7 +315,8 @@ public class BuyerOrderController { |
|
|
public ApiResponse getMyBuyedGoods(
|
|
|
@RequestParam("uid") int uid,
|
|
|
@RequestParam(value = "page", required = false, defaultValue = "1") int page,
|
|
|
@RequestParam(value = "limit", required = false, defaultValue = "10") int limit) {
|
|
|
@RequestParam(value = "limit", required = false, defaultValue = "10") int limit,
|
|
|
@RequestParam(value = "business_client", required = false,defaultValue = "ufo") String businessClient) {
|
|
|
TabType actor = TabType.BUY;
|
|
|
OrderListRequest orderListRequest = OrderListRequest.builder()
|
|
|
.uid(uid)
|
...
|
...
|
@@ -320,6 +325,7 @@ public class BuyerOrderController { |
|
|
.limit(limit)
|
|
|
.tabType(actor.getValue())
|
|
|
.actor(actor)
|
|
|
.businessClient(businessClient)
|
|
|
.build();
|
|
|
LOG.info("in ufo.getMyBuyedGoods.list, req {}", orderListRequest);
|
|
|
//TODO remove below codes 2 service level
|
...
|
...
|
|