From 37684cc7d51e57cca3f72ede4b7cd55264c44118 Mon Sep 17 00:00:00 2001 From: Yangwl <1726150332@qq.com> Date: Thu, 18 Jan 2024 13:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SAP=E6=9A=B4=E9=9C=B2?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/op/system/api/RemoteOpenService.java | 3 ++- .../src/main/java/com/op/system/api/RemoteSapService.java | 2 +- .../com/op/system/api/factory/RemoteSapFallbackFactory.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/op-api/op-api-system/src/main/java/com/op/system/api/RemoteOpenService.java b/op-api/op-api-system/src/main/java/com/op/system/api/RemoteOpenService.java index 0aa1d8ce..701246a8 100644 --- a/op-api/op-api-system/src/main/java/com/op/system/api/RemoteOpenService.java +++ b/op-api/op-api-system/src/main/java/com/op/system/api/RemoteOpenService.java @@ -4,6 +4,7 @@ import com.op.common.core.constant.ServiceNameConstants; import com.op.common.core.web.domain.AjaxResult; import com.op.system.api.factory.RemoteOpenFallbackFactory; import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; @@ -23,6 +24,6 @@ public interface RemoteOpenService { /**获取流程信息**/ - @PostMapping("/openInterface/GetOaNodeInfo") + @GetMapping("/openInterface/GetOaNodeInfo") public AjaxResult GetOaNodeInfo(@RequestParam("requestId") String requestId); } diff --git a/op-api/op-api-system/src/main/java/com/op/system/api/RemoteSapService.java b/op-api/op-api-system/src/main/java/com/op/system/api/RemoteSapService.java index ed59282a..97ab0a3c 100644 --- a/op-api/op-api-system/src/main/java/com/op/system/api/RemoteSapService.java +++ b/op-api/op-api-system/src/main/java/com/op/system/api/RemoteSapService.java @@ -74,7 +74,7 @@ public interface RemoteSapService { /**订单物料领料过账、原材料补料、订单物料退料过账接口(MB1A)**/ @PostMapping("/sap/sapMaterialPosting") - public R sapMaterialPosting(@RequestBody List sapMaterialPostingList); + public R sapMaterialPosting(@RequestBody SapMaterialPosting sapMaterialPostingList); /**智慧工厂储位信息*/ @PostMapping("/sap/sapLgortInfo") diff --git a/op-api/op-api-system/src/main/java/com/op/system/api/factory/RemoteSapFallbackFactory.java b/op-api/op-api-system/src/main/java/com/op/system/api/factory/RemoteSapFallbackFactory.java index 2fb7821f..1cafde65 100644 --- a/op-api/op-api-system/src/main/java/com/op/system/api/factory/RemoteSapFallbackFactory.java +++ b/op-api/op-api-system/src/main/java/com/op/system/api/factory/RemoteSapFallbackFactory.java @@ -85,7 +85,7 @@ public class RemoteSapFallbackFactory implements FallbackFactory sapMaterialPostingList) { + public R sapMaterialPosting(SapMaterialPosting sapMaterialPostingList) { return R.fail("订单物料领料过账、原材料补料、订单物料退料过账接口(MB1A)失败" + throwable.getMessage()); }