diff --git a/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java b/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java index 31ea1848..1c8f55d1 100644 --- a/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java +++ b/src/main/java/com/glxp/api/controller/thrsys/ThrSystemController.java @@ -299,7 +299,7 @@ public class ThrSystemController { */ @PostMapping("/udiwms/basic/thirdsys/testThirdService") public BaseResponse testThirdService(@RequestBody ThrSystemEntity thrSystemEntity) { - return thrSystemDetailService.testThirdService(thrSystemEntity); + return erpBasicClient.testConnection(thrSystemEntity); } @Resource diff --git a/src/main/java/com/glxp/api/http/ErpBasicClient.java b/src/main/java/com/glxp/api/http/ErpBasicClient.java index b3f9c959..45127efd 100644 --- a/src/main/java/com/glxp/api/http/ErpBasicClient.java +++ b/src/main/java/com/glxp/api/http/ErpBasicClient.java @@ -97,7 +97,7 @@ public class ErpBasicClient { //测试连通性 public BaseResponse testConnection(ThrSystemEntity thrSystemEntity) { - String response = httpOkClient.uCloudPost(thrSystemEntity.getThridUrl() + "/udispsync/sync/testConnection", "{}"); + String response = httpOkClient.uCloudPost(thrSystemEntity.getThridUrl() + "/udiwms/erp/testLocal", "{}"); log.info(response); if (StrUtil.isBlank(response)) { return ResultVOUtils.error(500, "连接失败"); diff --git a/src/main/java/com/glxp/api/service/inout/impl/IoOrderServiceImpl.java b/src/main/java/com/glxp/api/service/inout/impl/IoOrderServiceImpl.java index d2de0ac2..0ddbc954 100644 --- a/src/main/java/com/glxp/api/service/inout/impl/IoOrderServiceImpl.java +++ b/src/main/java/com/glxp/api/service/inout/impl/IoOrderServiceImpl.java @@ -945,7 +945,7 @@ public class IoOrderServiceImpl implements IoOrderService { return ResultVOUtils.success("提交成功"); } else { log.error("----单据上传----" + billNo + baseResponse.getMessage()); - return ResultVOUtils.error(500, "提交失败"); + return ResultVOUtils.error(500, baseResponse.getMessage()); } } }