Commit 112b9c41 by 周晓航

优化代码调用链路,不使用oms

parent 78a33fb0
...@@ -227,10 +227,6 @@ public class SaasOrderMangerServiceImpl implements OrderManagerService { ...@@ -227,10 +227,6 @@ public class SaasOrderMangerServiceImpl implements OrderManagerService {
//todo 可以考虑基于订单回调异步实现 //todo 可以考虑基于订单回调异步实现
//冲正库存 //冲正库存
stockHandle.revert(request,orderBean); stockHandle.revert(request,orderBean);
assisantApplicationHandler.assisantThirdPartyOrderRefundHandler(orderBean.getOid(),
orderBean.getBizType(),
orderBean.getOrderClient(),
orderBean.getMarketingType());
return ResponseUtil.success(); return ResponseUtil.success();
} }
......
...@@ -8,6 +8,7 @@ import cn.freemud.management.thirdparty.request.OrderSellCouponRefundRequest; ...@@ -8,6 +8,7 @@ import cn.freemud.management.thirdparty.request.OrderSellCouponRefundRequest;
import com.freemud.application.sdk.api.deliverycenter.response.DeliveryResponseDto; import com.freemud.application.sdk.api.deliverycenter.response.DeliveryResponseDto;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@FeignClient(name = "ASSISTANT-SERVICE", url = "${saas.assistantserviceclient.feign.url}") @FeignClient(name = "ASSISTANT-SERVICE", url = "${saas.assistantserviceclient.feign.url}")
...@@ -21,5 +22,5 @@ public interface FMAssistantApplicationClient { ...@@ -21,5 +22,5 @@ public interface FMAssistantApplicationClient {
*/ */
@PostMapping("/assistant/thirdparty/order/refund") @PostMapping("/assistant/thirdparty/order/refund")
@LogIgnoreFeign(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR}, messageFieldName = ResponseCodeKeyConstant.MSG, printLog = true) @LogIgnoreFeign(excludeStatusCodes = {ResponseCodeConstant.RESPONSE_SUCCESS_STR}, messageFieldName = ResponseCodeKeyConstant.MSG, printLog = true)
BaseResponse orderRefund(OrderSellCouponRefundRequest request); BaseResponse orderRefund(@RequestBody OrderSellCouponRefundRequest request);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment