forked from D-Net/dnet-hadoop
added check to verify not to add void APC
This commit is contained in:
parent
8429aed6c6
commit
e9a17ec899
|
@ -426,6 +426,9 @@ public class ResultMapper implements Serializable {
|
|||
Optional<Field<String>> oPca = Optional.ofNullable(i.getProcessingchargeamount());
|
||||
Optional<Field<String>> oPcc = Optional.ofNullable(i.getProcessingchargecurrency());
|
||||
if (oPca.isPresent() && oPcc.isPresent()) {
|
||||
Field<String> pca = oPca.get();
|
||||
Field<String> pcc = oPcc.get();
|
||||
if(!pca.getValue().trim().equals("") && !pcc.getValue().trim().equals("")){
|
||||
APC apc = new APC();
|
||||
apc.setCurrency(oPcc.get().getValue());
|
||||
apc.setAmount(oPca.get().getValue());
|
||||
|
@ -434,6 +437,8 @@ public class ResultMapper implements Serializable {
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static List<Provenance> getUniqueProvenance(List<Provenance> provenance) {
|
||||
Provenance iProv = new Provenance();
|
||||
|
||||
|
|
Loading…
Reference in New Issue