forked from maiora/backend-api
Compare commits
No commits in common. "bceca0c54f4e78584fb6df622c86b17164b3d92f" and "8af255bea01594d62ce3da202af5f39036b19261" have entirely different histories.
bceca0c54f
...
8af255bea0
@ -36,13 +36,9 @@ fun Route.valorePasti(valorePastiRepository: ValorePastiRepository){
|
|||||||
|
|
||||||
// Cerca la tessera per codice fiscale
|
// Cerca la tessera per codice fiscale
|
||||||
val valorePasto = valorePastiRepository.valorePastoByTessVassData(idTessera, idVassoio, data)
|
val valorePasto = valorePastiRepository.valorePastoByTessVassData(idTessera, idVassoio, data)
|
||||||
|
|
||||||
val prezzo = valorePasto.split("#").get(0)
|
val prezzo = valorePasto.split("#").get(0)
|
||||||
val punti = valorePasto.split("#").get(1)
|
val punti = valorePasto.split("#").get(1)
|
||||||
|
|
||||||
if(prezzo == "-1" && punti == "-1")
|
|
||||||
call.respondText("Prezzo e punti non trovati", status = HttpStatusCode.NotFound)
|
|
||||||
|
|
||||||
|
|
||||||
call.respond( ValorePasti(idTessera.toLong(),
|
call.respond( ValorePasti(idTessera.toLong(),
|
||||||
idVassoio.toLong(), data,
|
idVassoio.toLong(), data,
|
||||||
prezzo.replace(',', '.').toDouble(),
|
prezzo.replace(',', '.').toDouble(),
|
||||||
|
Loading…
Reference in New Issue
Block a user