refactor(qms): 优化库存检验申请接口调用

- 将硬编码的URL路径替换为配置化的主机地址和端点变量
- 提高代码可维护性并支持环境配置灵活调整
- 统一外部系统接口调用的URL构建方式
This commit is contained in:
曹鹏飞 2026-06-05 17:47:35 +08:00
parent cd62c739e1
commit 9400e241b8
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public class QmsService {
HttpEntity<ExternalInventoryInspectionApplyQO> requestEntity = new HttpEntity<>(apply, headers);
ResponseEntity<ApiResult<Void>> response = restTemplate.exchange(
qmsUrl + "/external/incoming-inspection-task/inventory-apply",
qmsHost + iqcInventoryApplyUrl,
HttpMethod.POST,
requestEntity,
new ParameterizedTypeReference<ApiResult<Void>>() {}