From 4289a8cd7be6faad845f221777b21a5920dc3b0d Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Tue, 27 Jun 2023 09:01:23 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0=E5=8C=85=E8=A3=85?= =?UTF-8?q?=E7=BA=BF=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cockpit/service/impl/BigScreenServiceImpl.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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 ec8939d..170c534 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 @@ -1312,8 +1312,15 @@ public class BigScreenServiceImpl implements BigScreenService { res = jsonObject.getJSONArray("data"); for (int i = 0; i < res.size(); i++) { JSONObject BZX = res.getJSONObject(i); - BZX.put("vehicle_type", BZX.getInteger("vehicle_type") + 2); - BZX.put("vehicle_code", TaskUtils.formatVehicleCode(BZX.getString("vehicle_code"))); + int vehicleType = BZX.getInteger("vehicle_type") + 2; + String vehicleCode = TaskUtils.formatVehicleCode(BZX.getString("vehicle_code")); + BZX.put("vehicle_type", vehicleType); + BZX.put("vehicle_code", vehicleCode); + // 添加砖数量 + WQLObject vdTab = WQLObject.getWQLObject("st_ivt_vehicle_detail"); + JSONObject object = vdTab.query("vehicle_type = '" + vehicleType + "'" + + " AND vehicle_code = '" + vehicleCode + "'").uniqueResult(0); + BZX.put("qty", object.getString("qty")); } return res; }, pool);