posted 2 years ago
On my service create invoiceProduct I have the above code:
I cannot undrestand why is null the result of
Retrieval existRetrieval=retrievalRepository.findByProductAndShelfAndDate(invoiceProduct.getProduct(),invoiceProduct.getShelf(), invoice.getDate());
invoiceProduct is a list ,
My JSON on postman is this...
{
.....
"invoiceProductDTOTotalList" : [
{
"shelfId" : "35",
"productId" : "adada",
"quantity": 10
}
]
my problem is about existRetrieval cannot find an existing retrieval...