fix(service): 修正入库检验任务处理逻辑和HTTP请求头部

- 根据请求合格状态异步处理入库检验任务回调
- 修正旧逻辑中无条件同步处理回调的问题
- 移除HTTP请求中不必要的Authorization头部设置
- 优化相关服务调用流程,避免潜在的授权问题
This commit is contained in:
曹鹏飞 2026-04-30 15:17:41 +08:00
parent 0a9d8e91a8
commit 7ed82ff904
2 changed files with 2 additions and 3 deletions

View File

@ -989,8 +989,8 @@ public class IncomingInspectionTaskControllerService {
updateWrapper.update();
if (task.getInspectionResult()) {
wmsIncomingInspectionTaskCallbackService.process(task.getId());
if (request.getQualified()) {
wmsIncomingInspectionTaskCallbackService.processAsync(task.getId(), (short) 0);
} else {
issueTicketControllerService.initiate(task.getId());
}

View File

@ -46,7 +46,6 @@ public class WmsApiService {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
headers.add("Authorization", StpUtil.getTokenValue());
HttpEntity<T> requestEntity = new HttpEntity<>(body, headers);
log.info("{}URL: {},数据: {}", bizDesc, fullUrl, JSONUtil.toJsonStr(body));