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()); }