use mandatRef as additional query param to find unique result

This commit is contained in:
Peter Hormanns 2021-09-13 17:45:50 +02:00
parent 4aea51728e
commit df9986361f

View File

@ -92,6 +92,7 @@ public class SEPADirectDebitService extends AbstractModule<SEPADirectDebitVO> im
query.setParameter("bankIBAN", prototype.get("bankIBAN").getValue());
query.setParameter("bankBIC", prototype.get("bankBIC").getValue());
query.setParameter("customer", prototype.get("customer").getValue());
query.setParameter("mandatRef", prototype.get("mandatRef").getValue());
query.setParameter("mandatSigned", prototype.get("mandatSigned").getValue());
return (SEPADirectDebit) query.getSingleResult();
}