This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository tutti. See http://git.codelutin.com/tutti.git commit fa42d9bcb075322daa4c51bd36ab8242e023285a Author: Tony CHEMIT <chemit@codelutin.com> Date: Tue Apr 14 19:12:54 2015 +0200 refs #6959 calculer le numéro d'ordre à l'import des lots --- .../service/genericformat/importactions/ImportCatchAction.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tutti-service/src/main/java/fr/ifremer/tutti/service/genericformat/importactions/ImportCatchAction.java b/tutti-service/src/main/java/fr/ifremer/tutti/service/genericformat/importactions/ImportCatchAction.java index e919f66..58bb2d2 100644 --- a/tutti-service/src/main/java/fr/ifremer/tutti/service/genericformat/importactions/ImportCatchAction.java +++ b/tutti-service/src/main/java/fr/ifremer/tutti/service/genericformat/importactions/ImportCatchAction.java @@ -170,8 +170,12 @@ public class ImportCatchAction extends ImportActionSupport { private void persistSpeciesBatches(GenericFormatImportOperationContext fishingOperationContext, Collection<SpeciesBatch> batches, String parentId) { + int rankOrder = 1; + for (SpeciesBatch batch : batches) { + batch.setRankOrder(rankOrder++); + Integer batchObjectId = fishingOperationContext.getBatchObjectId(batch.getIdAsInt()); List<SpeciesBatchFrequency> frequencies = fishingOperationContext.getSpeciesFrequencies(batch); @@ -261,8 +265,12 @@ public class ImportCatchAction extends ImportActionSupport { private void persistBenthosBatches(GenericFormatImportOperationContext fishingOperationContext, Collection<BenthosBatch> batches, String parentId) { + int rankOrder = 1; + for (BenthosBatch batch : batches) { + batch.setRankOrder(rankOrder++); + Integer batchObjectId = fishingOperationContext.getBatchObjectId(batch.getIdAsInt()); List<BenthosBatchFrequency> frequencies = fishingOperationContext.getBenthosFrequencies(batch); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.