Merge branch 'master' into develop
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:
@@ -692,6 +692,15 @@ public class DistribuzioneColliService {
|
|||||||
|
|
||||||
List<EntityBase> saveResponse = entityProcessor.processEntityList(entityToSave, skipCommit);
|
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()) {
|
if (saveResponse != null && !saveResponse.isEmpty()) {
|
||||||
for (EntityBase responseEntity : saveResponse) {
|
for (EntityBase responseEntity : saveResponse) {
|
||||||
|
|||||||
Reference in New Issue
Block a user