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);