diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/sorting/service/impl/WmsToSortingService.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/sorting/service/impl/WmsToSortingService.java index a5880f3..6dc4ad2 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/sorting/service/impl/WmsToSortingService.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/ext/sorting/service/impl/WmsToSortingService.java @@ -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; }