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