Browse Source

add: 添加包装线大屏

master
李永德 1 year ago
parent
commit
4289a8cd7b
  1. 11
      lms/nladmin-system/src/main/java/org/nl/wms/cockpit/service/impl/BigScreenServiceImpl.java

11
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"); res = jsonObject.getJSONArray("data");
for (int i = 0; i < res.size(); i++) { for (int i = 0; i < res.size(); i++) {
JSONObject BZX = res.getJSONObject(i); JSONObject BZX = res.getJSONObject(i);
BZX.put("vehicle_type", BZX.getInteger("vehicle_type") + 2); int vehicleType = BZX.getInteger("vehicle_type") + 2;
BZX.put("vehicle_code", TaskUtils.formatVehicleCode(BZX.getString("vehicle_code"))); 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; return res;
}, pool); }, pool);

Loading…
Cancel
Save