rev:添加状态反馈功能ext_Data

This commit is contained in:
zhangzq
2024-08-07 19:38:30 +08:00
parent 6785fc7014
commit 220c5aab4b

View File

@@ -29,11 +29,10 @@ public class WmsToSortingService {
SchBaseTask task = iSchBaseTaskService.getByCode(task_code);
String request_param = task.getRequest_param();
JSONObject toJSON = (JSONObject)JSONObject.toJSON(request_param);
String ext_data = toJSON.getString("ext_data");
if (StringUtils.isEmpty(ext_data)){
if (toJSON == null){
throw new BadRequestException("WmsToSortingService反馈异常,sorting对接数据ext_data为空");
}
AcsResponse acsResponse = ConnectorUtil.notifyEextSystem("api/external/wms/agv", ext_data, GeneralDefinition.SORTING_URL);
AcsResponse acsResponse = ConnectorUtil.notifyEextSystem("api/external/wms/agv", toJSON, GeneralDefinition.SORTING_URL);
return acsResponse;
}