mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-09 12:29:13 +00:00
terminando pedidos
This commit is contained in:
@ -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 "";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user