Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
-
adfa7553
by Tony Chemit at 2022-04-25T17:35:39+02:00
1 changed file:
Changes:
| ... | ... | @@ -254,15 +254,13 @@ public class ImportEngineExecution extends ImportEngine { |
| 254 | 254 | ResultSet wellRow = tables.wellTableReader.next();
|
| 255 | 255 | WellPlan fictiveWellPlan = wellPlanReader.read(context, wellRow);
|
| 256 | 256 | tables.wellSetTableReader.setPrimaryKey(tables.wellTableReader.lastPrimaryKey());
|
| 257 | - int tripIdx = 0;
|
|
| 258 | 257 | while (tables.wellSetTableReader.hasNext()) {
|
| 259 | 258 | ResultSet wellSetRow = tables.wellSetTableReader.next();
|
| 260 | 259 | WellPlan wellPlan = wellPlanReader.readExtra(context, fictiveWellPlan, wellSetRow);
|
| 261 | 260 | if (wellPlan != null) {
|
| 262 | - wellPlanWriter.write(wellPlan, tripId, tripIdx++);
|
|
| 261 | + wellPlanWriter.write(wellPlan, tripId, wellPlanCount++);
|
|
| 263 | 262 | }
|
| 264 | 263 | }
|
| 265 | - wellPlanCount += tripIdx;
|
|
| 266 | 264 | }
|
| 267 | 265 | if (wellPlanCount > 0) {
|
| 268 | 266 | // found some wellPlan, update targetWellsSamplingAcquisitionStatus
|