terminando pedidos

This commit is contained in:
2025-11-29 00:07:51 +01:00
parent 25a7bcf0b8
commit 9baf880022
16 changed files with 9924 additions and 927 deletions

View File

@ -69,4 +69,18 @@ public class PaisesService {
}
}
public String getPaisNombrePorCode3(String code3, Locale locale) {
if (code3 == null || code3.isEmpty()) {
return "";
}
Optional<Paises> opt = repo.findByCode3(code3);
if (opt.isPresent()) {
Paises pais = opt.get();
String key = pais.getKeyword();
return messageSource.getMessage("paises." + key, null, key, locale);
} else {
return "";
}
}
}