Finish Hotfix-101
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:
@@ -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)) {
|
if (findCtbAnag == null && isNewClie && !UtilityString.isNullOrEmpty(codCcon)) {
|
||||||
CtbAnag ctbAnag = new CtbAnag();
|
CtbAnag ctbAnag = new CtbAnag();
|
||||||
|
|||||||
Reference in New Issue
Block a user