From 1b0bd699df9f4e56344b8c0aeaa0536940b24e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B1=9F=E7=8E=AE?= Date: Wed, 5 Jul 2023 16:04:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/cockpit/service/impl/BigScreenServiceImpl.java | 5 +++-- .../main/java/org/nl/wms/sch/manage/AutoUpdateWorkOrder.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/cockpit/service/impl/BigScreenServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/cockpit/service/impl/BigScreenServiceImpl.java index c034e39..a80018c 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/cockpit/service/impl/BigScreenServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/cockpit/service/impl/BigScreenServiceImpl.java @@ -433,8 +433,9 @@ public class BigScreenServiceImpl implements BigScreenService { JSONObject result = new JSONObject(); d1.put("device_code", "LQD01"); res.add(d1); - d1.put("device_code", "HCD01"); - res.add(d1); + JSONObject d2 = new JSONObject(); + d1.put("device_code", "KCD01"); + res.add(d2); JSONObject devicesStatus = PointUpdateUtil.getDevicesStatus(res); // JSONObject devicesStatus = null; JSONArray data = ObjectUtil.isNotEmpty(devicesStatus) ? devicesStatus.getJSONArray("data") : res; diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/sch/manage/AutoUpdateWorkOrder.java b/lms/nladmin-system/src/main/java/org/nl/wms/sch/manage/AutoUpdateWorkOrder.java index f9a61c5..f4a2ec8 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/sch/manage/AutoUpdateWorkOrder.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/sch/manage/AutoUpdateWorkOrder.java @@ -51,7 +51,7 @@ public class AutoUpdateWorkOrder { TaskUtils.addAutoUpdateColum(yzWorkOrderUpdate); for (int i = 0; i < yzData.size(); i++) { JSONObject newData = yzData.getJSONObject(i); - yzWorkOrderUpdate.put("real_qty", newData.getString("reql_qty")); + yzWorkOrderUpdate.put("real_qty", newData.getString("real_qty")); yzWorkOrderUpdate.put("qualified_qty", newData.getString("qualified")); yzWorkOrderUpdate.put("unqualified_qty", newData.getString("unqualified")); workOrderTable.update(yzWorkOrderUpdate, "workorder_id = " + newData.getString("workorder_id")); @@ -62,7 +62,7 @@ public class AutoUpdateWorkOrder { TaskUtils.addAutoUpdateColum(fjWorkOrderUpdate); for (int i = 0; i < fjData.size(); i++) { JSONObject newData = fjData.getJSONObject(i); - yzWorkOrderUpdate.put("real_qty", newData.getString("reql_qty")); + yzWorkOrderUpdate.put("real_qty", newData.getString("real_qty")); workOrderTable.update(yzWorkOrderUpdate, "workorder_id = " + newData.getString("workorder_id")); } }