45e4a563 wangzhiliang

微服务接口增加日志ID

1 个父辈 2f9b7006
...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl; ...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
2 2
3 import com.alibaba.dubbo.config.annotation.Reference; 3 import com.alibaba.dubbo.config.annotation.Reference;
4 import com.doubo.common.model.response.CommonResponse; 4 import com.doubo.common.model.response.CommonResponse;
5 import com.sibu.mall.common.utils.SeqGenUtil;
5 import com.sibu.mall.order.request.third.ThirdQueryOrderRequest; 6 import com.sibu.mall.order.request.third.ThirdQueryOrderRequest;
6 import com.sibu.mall.order.response.api.ApiOrdersResponse; 7 import com.sibu.mall.order.response.api.ApiOrdersResponse;
7 import com.sibu.mall.order.service.ThirdApiOrderService; 8 import com.sibu.mall.order.service.ThirdApiOrderService;
...@@ -46,6 +47,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef ...@@ -46,6 +47,7 @@ public class CheckRefundStatusBizServiceImpl extends AbstractBizService<CheckRef
46 ThirdQueryOrderRequest thirdQueryOrderRequest = new ThirdQueryOrderRequest(); 47 ThirdQueryOrderRequest thirdQueryOrderRequest = new ThirdQueryOrderRequest();
47 thirdQueryOrderRequest.setOrderSn(callRequest.getBizModel().getOrderID()); 48 thirdQueryOrderRequest.setOrderSn(callRequest.getBizModel().getOrderID());
48 thirdQueryOrderRequest.setSellerId(callRequest.getSupplier().getId()); 49 thirdQueryOrderRequest.setSellerId(callRequest.getSupplier().getId());
50 thirdQueryOrderRequest.setInitiationID(SeqGenUtil.getLogId());
49 Orders orders = null; 51 Orders orders = null;
50 CommonResponse<ApiOrdersResponse> commonResponse = thirdApiOrderService.getOrdersByMap(thirdQueryOrderRequest); 52 CommonResponse<ApiOrdersResponse> commonResponse = thirdApiOrderService.getOrdersByMap(thirdQueryOrderRequest);
51 if(commonResponse.isSuccess()){ 53 if(commonResponse.isSuccess()){
......
...@@ -3,6 +3,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl; ...@@ -3,6 +3,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
3 import com.alibaba.dubbo.config.annotation.Reference; 3 import com.alibaba.dubbo.config.annotation.Reference;
4 import com.doubo.common.model.response.CommonResponse; 4 import com.doubo.common.model.response.CommonResponse;
5 import com.sibu.mall.common.response.PageResult; 5 import com.sibu.mall.common.response.PageResult;
6 import com.sibu.mall.common.utils.SeqGenUtil;
6 import com.sibu.mall.order.request.api.ApiOrdersSnRequest; 7 import com.sibu.mall.order.request.api.ApiOrdersSnRequest;
7 import com.sibu.mall.order.request.third.ThirdPageQueryOrderListRequest; 8 import com.sibu.mall.order.request.third.ThirdPageQueryOrderListRequest;
8 import com.sibu.mall.order.response.api.ApiOrdersProductResponse; 9 import com.sibu.mall.order.response.api.ApiOrdersProductResponse;
...@@ -83,7 +84,7 @@ public class GetOrderBizServiceImpl extends AbstractBizService<GetOrderRequest> ...@@ -83,7 +84,7 @@ public class GetOrderBizServiceImpl extends AbstractBizService<GetOrderRequest>
83 } 84 }
84 thirdPageQueryOrderListRequest.setPageNow(callRequest.getBizModel().getPageIndex()); 85 thirdPageQueryOrderListRequest.setPageNow(callRequest.getBizModel().getPageIndex());
85 thirdPageQueryOrderListRequest.setPageSize(callRequest.getBizModel().getPageSize()); 86 thirdPageQueryOrderListRequest.setPageSize(callRequest.getBizModel().getPageSize());
86 87 thirdPageQueryOrderListRequest.setInitiationID(SeqGenUtil.getLogId());
87 CommonResponse<PageResult<ApiOrdersResponse>> thirdResponse = thirdApiOrderService.pageOrder(thirdPageQueryOrderListRequest); 88 CommonResponse<PageResult<ApiOrdersResponse>> thirdResponse = thirdApiOrderService.pageOrder(thirdPageQueryOrderListRequest);
88 89
89 GetOrderResponse response = new GetOrderResponse(); 90 GetOrderResponse response = new GetOrderResponse();
...@@ -135,7 +136,9 @@ public class GetOrderBizServiceImpl extends AbstractBizService<GetOrderRequest> ...@@ -135,7 +136,9 @@ public class GetOrderBizServiceImpl extends AbstractBizService<GetOrderRequest>
135 OrderResponse orderResponse = this.getOrderResponse(o); 136 OrderResponse orderResponse = this.getOrderResponse(o);
136 try { 137 try {
137 List<OrdersProduct> ordersProductList = null; 138 List<OrdersProduct> ordersProductList = null;
138 CommonResponse<List<ApiOrdersProductResponse>> commonResponse = apiOrdersProductService.getOrdersProductByOrderSn(new ApiOrdersSnRequest(o.getOrderSn())); 139 ApiOrdersSnRequest apiOrdersSnRequest = new ApiOrdersSnRequest(o.getOrderSn());
140 apiOrdersSnRequest.setInitiationID(SeqGenUtil.getLogId());
141 CommonResponse<List<ApiOrdersProductResponse>> commonResponse = apiOrdersProductService.getOrdersProductByOrderSn(apiOrdersSnRequest);
139 if(commonResponse.isSuccess()){ 142 if(commonResponse.isSuccess()){
140 ordersProductList = BeanCopyUtils.copyList(OrdersProduct.class, commonResponse.getResult()); 143 ordersProductList = BeanCopyUtils.copyList(OrdersProduct.class, commonResponse.getResult());
141 } 144 }
......
...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl; ...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
2 2
3 import com.alibaba.dubbo.config.annotation.Reference; 3 import com.alibaba.dubbo.config.annotation.Reference;
4 import com.doubo.common.model.response.CommonResponse; 4 import com.doubo.common.model.response.CommonResponse;
5 import com.sibu.mall.common.utils.SeqGenUtil;
5 import com.sibu.mall.order.request.api.ApiOrdersSnRequest; 6 import com.sibu.mall.order.request.api.ApiOrdersSnRequest;
6 import com.sibu.mall.order.request.third.ThirdOrdersProductIdRequest; 7 import com.sibu.mall.order.request.third.ThirdOrdersProductIdRequest;
7 import com.sibu.mall.order.response.api.ApiOrdersResponse; 8 import com.sibu.mall.order.response.api.ApiOrdersResponse;
...@@ -69,7 +70,9 @@ public class GetRefundBizServiceImpl extends AbstractBizService<GetRefundReques ...@@ -69,7 +70,9 @@ public class GetRefundBizServiceImpl extends AbstractBizService<GetRefundReques
69 orderSn = memberReadDao.getNewOrderSnByOldOrderSn(orderSn); 70 orderSn = memberReadDao.getNewOrderSnByOldOrderSn(orderSn);
70 } 71 }
71 72
72 CommonResponse<ApiOrdersResponse> orderResponse = apiOrdersService.getOrdersByOrderSn(new ApiOrdersSnRequest(orderSn)); 73 ApiOrdersSnRequest apiOrdersSnRequest = new ApiOrdersSnRequest(orderSn);
74 apiOrdersSnRequest.setInitiationID(SeqGenUtil.getLogId());
75 CommonResponse<ApiOrdersResponse> orderResponse = apiOrdersService.getOrdersByOrderSn(apiOrdersSnRequest);
73 if(orderResponse.isSuccess()){ 76 if(orderResponse.isSuccess()){
74 getRefundBean.setTotalamount(orderResponse.getResult().getMoneyOrder()); 77 getRefundBean.setTotalamount(orderResponse.getResult().getMoneyOrder());
75 getRefundBean.setPayamount(orderResponse.getResult().getMoneyOrder()); 78 getRefundBean.setPayamount(orderResponse.getResult().getMoneyOrder());
...@@ -77,7 +80,9 @@ public class GetRefundBizServiceImpl extends AbstractBizService<GetRefundReques ...@@ -77,7 +80,9 @@ public class GetRefundBizServiceImpl extends AbstractBizService<GetRefundReques
77 }else { 80 }else {
78 throw new BizException(orderResponse.getErrorMsg()); 81 throw new BizException(orderResponse.getErrorMsg());
79 } 82 }
80 CommonResponse<Integer> response = thirdApiOrderService.countOrderProductNum(new ThirdOrdersProductIdRequest(getRefundBean.getOrdersproductuid(),orderSn)); 83 ThirdOrdersProductIdRequest thirdOrdersProductIdRequest = new ThirdOrdersProductIdRequest(getRefundBean.getOrdersproductuid(),orderSn);
84 thirdOrdersProductIdRequest.setInitiationID(SeqGenUtil.getLogId());
85 CommonResponse<Integer> response = thirdApiOrderService.countOrderProductNum(thirdOrdersProductIdRequest);
81 getRefundBean.setProductnum(response.getResult()); 86 getRefundBean.setProductnum(response.getResult());
82 OrderStatusEnum orderStatusEnum = OrderStatusEnum.resolveByPlatformOrderStatus(Integer.valueOf(getRefundBean.getOrderstatus())); 87 OrderStatusEnum orderStatusEnum = OrderStatusEnum.resolveByPlatformOrderStatus(Integer.valueOf(getRefundBean.getOrderstatus()));
83 if(orderStatusEnum.getCode().equals(OrderStatusEnum.UNKNOWN.getCode())){ 88 if(orderStatusEnum.getCode().equals(OrderStatusEnum.UNKNOWN.getCode())){
......
...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl; ...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
2 2
3 import com.alibaba.dubbo.config.annotation.Reference; 3 import com.alibaba.dubbo.config.annotation.Reference;
4 import com.doubo.common.model.response.CommonResponse; 4 import com.doubo.common.model.response.CommonResponse;
5 import com.sibu.mall.common.utils.SeqGenUtil;
5 import com.sibu.mall.order.request.third.ThirdQueryOrderRequest; 6 import com.sibu.mall.order.request.third.ThirdQueryOrderRequest;
6 import com.sibu.mall.order.request.third.ThirdUpdateOrderRequest; 7 import com.sibu.mall.order.request.third.ThirdUpdateOrderRequest;
7 import com.sibu.mall.order.response.api.ApiOrdersResponse; 8 import com.sibu.mall.order.response.api.ApiOrdersResponse;
...@@ -53,6 +54,7 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen ...@@ -53,6 +54,7 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen
53 ThirdQueryOrderRequest thirdQueryOrderRequest = new ThirdQueryOrderRequest(); 54 ThirdQueryOrderRequest thirdQueryOrderRequest = new ThirdQueryOrderRequest();
54 thirdQueryOrderRequest.setOrderSn(callRequest.getBizModel().getPlatOrderNo()); 55 thirdQueryOrderRequest.setOrderSn(callRequest.getBizModel().getPlatOrderNo());
55 thirdQueryOrderRequest.setSellerId(callRequest.getSupplier().getId()); 56 thirdQueryOrderRequest.setSellerId(callRequest.getSupplier().getId());
57 thirdQueryOrderRequest.setInitiationID(SeqGenUtil.getLogId());
56 Orders orders = null; 58 Orders orders = null;
57 CommonResponse<ApiOrdersResponse> commonResponse = thirdApiOrderService.getOrdersByMap(thirdQueryOrderRequest); 59 CommonResponse<ApiOrdersResponse> commonResponse = thirdApiOrderService.getOrdersByMap(thirdQueryOrderRequest);
58 if(commonResponse.isSuccess()){ 60 if(commonResponse.isSuccess()){
......
...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl; ...@@ -2,6 +2,7 @@ package com.sibu.orderHelper.integral.service.pineapple.impl;
2 2
3 import com.alibaba.dubbo.config.annotation.Reference; 3 import com.alibaba.dubbo.config.annotation.Reference;
4 import com.doubo.common.model.response.CommonResponse; 4 import com.doubo.common.model.response.CommonResponse;
5 import com.sibu.mall.common.utils.SeqGenUtil;
5 import com.sibu.mall.order.request.third.ThirdQueryOrderRequest; 6 import com.sibu.mall.order.request.third.ThirdQueryOrderRequest;
6 import com.sibu.mall.order.request.third.ThirdUpdateOrderRequest; 7 import com.sibu.mall.order.request.third.ThirdUpdateOrderRequest;
7 import com.sibu.mall.order.response.api.ApiOrdersResponse; 8 import com.sibu.mall.order.response.api.ApiOrdersResponse;
...@@ -43,11 +44,13 @@ public class UpdateSellerMemoBizServiceImpl extends AbstractBizService<UpdateS ...@@ -43,11 +44,13 @@ public class UpdateSellerMemoBizServiceImpl extends AbstractBizService<UpdateS
43 44
44 thirdQueryOrderRequest.setOrderSn(callRequest.getBizModel().getPlatOrderNo()); 45 thirdQueryOrderRequest.setOrderSn(callRequest.getBizModel().getPlatOrderNo());
45 thirdQueryOrderRequest.setSellerId(callRequest.getSupplier().getId()); 46 thirdQueryOrderRequest.setSellerId(callRequest.getSupplier().getId());
47 thirdQueryOrderRequest.setInitiationID(SeqGenUtil.getLogId());
46 48
47 ThirdUpdateOrderRequest thirdUpdateOrderRequest = new ThirdUpdateOrderRequest(); 49 ThirdUpdateOrderRequest thirdUpdateOrderRequest = new ThirdUpdateOrderRequest();
48 thirdUpdateOrderRequest.setOrderSn(callRequest.getBizModel().getPlatOrderNo()); 50 thirdUpdateOrderRequest.setOrderSn(callRequest.getBizModel().getPlatOrderNo());
49 thirdUpdateOrderRequest.setSellerId(callRequest.getSupplier().getId()); 51 thirdUpdateOrderRequest.setSellerId(callRequest.getSupplier().getId());
50 thirdUpdateOrderRequest.setRemark(callRequest.getBizModel().getSellerMemo()); 52 thirdUpdateOrderRequest.setRemark(callRequest.getBizModel().getSellerMemo());
53 thirdUpdateOrderRequest.setInitiationID(SeqGenUtil.getLogId());
51 54
52 Orders orders = null; 55 Orders orders = null;
53 CommonResponse<ApiOrdersResponse> response = thirdApiOrderService.getOrdersByMap(thirdQueryOrderRequest); 56 CommonResponse<ApiOrdersResponse> response = thirdApiOrderService.getOrdersByMap(thirdQueryOrderRequest);
......