|
@ -159,9 +159,11 @@ public class PdaServiceImpl implements PdaService { |
|
|
} |
|
|
} |
|
|
String vehicleId = vehicle.getString("vehicle_id"); |
|
|
String vehicleId = vehicle.getString("vehicle_id"); |
|
|
|
|
|
|
|
|
|
|
|
WQLObject vmTable = WQLObject.getWQLObject("st_ivt_vehicle_material"); |
|
|
|
|
|
vmTable.delete("vehicle_id = " + vehicleId); |
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(materials)) { |
|
|
if (ObjectUtil.isNotEmpty(materials)) { |
|
|
WQLObject materialTable = WQLObject.getWQLObject("md_me_materialbase"); |
|
|
WQLObject materialTable = WQLObject.getWQLObject("md_me_materialbase"); |
|
|
WQLObject vmTable = WQLObject.getWQLObject("st_ivt_vehicle_material"); |
|
|
|
|
|
for (Object o : materials) { |
|
|
for (Object o : materials) { |
|
|
String code = ((JSONObject) o).getString("code"); |
|
|
String code = ((JSONObject) o).getString("code"); |
|
|
Double qty = ((JSONObject) o).getDouble("qty"); |
|
|
Double qty = ((JSONObject) o).getDouble("qty"); |
|
|