fix(service): 修正入库检验任务处理逻辑和HTTP请求头部
- 根据请求合格状态异步处理入库检验任务回调 - 修正旧逻辑中无条件同步处理回调的问题 - 移除HTTP请求中不必要的Authorization头部设置 - 优化相关服务调用流程,避免潜在的授权问题
This commit is contained in:
parent
0a9d8e91a8
commit
7ed82ff904
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue