From 220c5aab4b1d435e61cf7ee3926e2a2d0d2ea6a4 Mon Sep 17 00:00:00 2001 From: zhangzq Date: Wed, 7 Aug 2024 19:38:30 +0800 Subject: [PATCH] =?UTF-8?q?rev:=E6=B7=BB=E5=8A=A0=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=8F=8D=E9=A6=88=E5=8A=9F=E8=83=BDext=5FData?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/ext/sorting/service/impl/WmsToSortingService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }