From cca7b50e3cf8143d6ea718fb0220a61f32786675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B1=9F=E7=8E=AE?= Date: Sat, 8 Apr 2023 11:08:12 +0800 Subject: [PATCH] Update WmsToAcsServiceImpl.java --- .../wms/service/impl/WmsToAcsServiceImpl.java | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/WmsToAcsServiceImpl.java b/acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/WmsToAcsServiceImpl.java index f481325..3be75c9 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/WmsToAcsServiceImpl.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/ext/wms/service/impl/WmsToAcsServiceImpl.java @@ -451,28 +451,23 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { log.info("crateTask-----输入参数{}", param); CreateTaskResponse response = new CreateTaskResponse(); JSONArray errArr = new JSONArray(); - CreateTaskRequest request = JsonUtl.format(param, CreateTaskRequest.class); + JSONObject request = JSONObject.parseObject(param); // String ext_task_id = request.getREQCODE(); - String task_code = request.getTASKCODE(); - String start_device_code = request.getSTARTPOSITION(); + String task_code = request.getString("TASKCODE"); + String start_device_code = request.getString("STARTPOSITION"); // String start_device_code2 = request.getStart_device_code2(); - String next_device_code = request.getENNPOSITION(); + String next_device_code = request.getString("ENNPOSITION"); // String next_device_code2 = request.getNext_device_code2(); // String put_device_code = request.getPut_device_code(); - String priority = request.getPriority(); - String vehicle_code = request.getPODCODE(); - String vehicle_type = request.getVehicle_type(); - String route_plan_code = request.getRoute_plan_code(); - String task_type = request.getTASKTYPE(); - String storage_task_type = request.getDtl_type(); + String priority = "1"; + String vehicle_code = request.getString("PODCODE"); + String vehicle_type = "1"; + String route_plan_code = "1"; + String task_type = request.getString("TASKTYPE"); + String storage_task_type = "1"; String agv_system_type = "1"; - String remark = request.getRemark(); + String remark = ""; double oven_time = 0.00d; - if (StrUtil.isNotEmpty(request.getOven_time())) { - oven_time = Double.parseDouble(request.getOven_time()); - } - String temperature = request.getTemperature(); - Map params = request.getParams(); String start_point_code = ""; String start_point_code2 = ""; @@ -625,7 +620,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { jo.put("agv_system_type", agv_system_type); jo.put("oven_time", (int) Math.ceil(oven_time)); jo.put("remark", remark); - jo.put("params", params); + jo.put("params", ""); jo.put("task_type", task_type); if (!StrUtil.isEmpty(task_code)) {