Finish Hotfix-101
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-12-01 11:44:34 +01:00

View File

@@ -206,7 +206,17 @@ public class OrdiniNewCliImportService {
}
}
EntityBase findCtbAnag = arrayEntity.stream().filter(x -> x.getClass().equals(CtbAnag.class)).findFirst().orElse(null);
EntityBase findCtbAnag = arrayEntity.stream().filter(x -> {
if (x.getClass().equals(CtbAnag.class)){
return true;
}
if (x instanceof GtbAnag){
GtbAnag gtbAnag1 = (GtbAnag) x ;
return gtbAnag1.getCtbAnag() != null;
}
return false;
}).findFirst().orElse(null);
if (findCtbAnag == null && isNewClie && !UtilityString.isNullOrEmpty(codCcon)) {
CtbAnag ctbAnag = new CtbAnag();