第三方服务修改

test
anthonywj 2 years ago
parent 5da495fbaf
commit 974f1aca65

@ -299,7 +299,7 @@ public class ThrSystemController {
*/ */
@PostMapping("/udiwms/basic/thirdsys/testThirdService") @PostMapping("/udiwms/basic/thirdsys/testThirdService")
public BaseResponse testThirdService(@RequestBody ThrSystemEntity thrSystemEntity) { public BaseResponse testThirdService(@RequestBody ThrSystemEntity thrSystemEntity) {
return thrSystemDetailService.testThirdService(thrSystemEntity); return erpBasicClient.testConnection(thrSystemEntity);
} }
@Resource @Resource

@ -97,7 +97,7 @@ public class ErpBasicClient {
//测试连通性 //测试连通性
public BaseResponse testConnection(ThrSystemEntity thrSystemEntity) { 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); log.info(response);
if (StrUtil.isBlank(response)) { if (StrUtil.isBlank(response)) {
return ResultVOUtils.error(500, "连接失败"); return ResultVOUtils.error(500, "连接失败");

@ -945,7 +945,7 @@ public class IoOrderServiceImpl implements IoOrderService {
return ResultVOUtils.success("提交成功"); return ResultVOUtils.success("提交成功");
} else { } else {
log.error("----单据上传----" + billNo + baseResponse.getMessage()); log.error("----单据上传----" + billNo + baseResponse.getMessage());
return ResultVOUtils.error(500, "提交失败"); return ResultVOUtils.error(500, baseResponse.getMessage());
} }
} }
} }

Loading…
Cancel
Save