arcustService.getCustomerIdByCountryAndOfsCustomerId(country, ofsCustomerId);
------service----
public String getCustomerIdByCountryAndOfsCustomerId(String country, String ofsCustomerId);
-----servceImpl---
@Override
public String getCustomerIdByCountryAndOfsCustomerId(String country, String ofsCustomerId) {
return arcustRepository.findCustomerIdByCountryAndOfsCustomerId(country, ofsCustomerId);
}
----Repository---
@Query("SELECT a.customerId FROM Arcust a WHERE a.country = :country AND a.ofsCustomerId = :ofsCustomerId")
public abstract String findCustomerIdByCountryAndOfsCustomerId(
@QueryParam("country") String country, @QueryParam("ofsCustomerId") String ofsCustomerId);
------Error Picture attached---