Merge branch 'master' into feature/RefactoringGestioneColli
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -703,6 +703,15 @@ public class DistribuzioneColliService {
|
||||
|
||||
List<EntityBase> saveResponse = entityProcessor.processEntityList(entityToSave, skipCommit);
|
||||
|
||||
//Rimuovo le righe eliminate dalle liste dei colli salvati
|
||||
if (saveResponse != null) {
|
||||
for (EntityBase entity : saveResponse) {
|
||||
if (entity.getException() != null) throw entity.getException();
|
||||
|
||||
if (entity instanceof MtbColt)
|
||||
((MtbColt) entity).getMtbColr().removeIf(mtbColr -> mtbColr.getOperation() == OperationType.DELETE);
|
||||
}
|
||||
}
|
||||
|
||||
if (saveResponse != null && !saveResponse.isEmpty()) {
|
||||
for (EntityBase responseEntity : saveResponse) {
|
||||
|
||||
Reference in New Issue
Block a user