fix: ParametresLcbFtService compilation errors

Corrections pour T027 (tests backend):
- Logger.getLogger(*.class) au lieu de *.java
- Builder pattern: setters pour champs BaseResponse hérités

Impact: Compilation 100% réussie, tests 1167/1168 passent

Signed-off-by: lions dev Team
This commit is contained in:
dahoud
2026-03-15 04:50:06 +00:00
parent eb729bdc56
commit e82dc356f3

View File

@@ -27,7 +27,7 @@ import java.util.UUID;
@ApplicationScoped
public class ParametresLcbFtService {
private static final Logger LOG = Logger.getLogger(ParametresLcbFtService.java);
private static final Logger LOG = Logger.getLogger(ParametresLcbFtService.class);
private static final String CODE_DEVISE_DEFAULT = "XOF";
@Inject
@@ -136,8 +136,7 @@ public class ParametresLcbFtService {
* Convertit l'entité en DTO de réponse.
*/
private ParametresLcbFtResponse toDTO(ParametresLcbFt params) {
return ParametresLcbFtResponse.builder()
.id(params.getId().toString())
ParametresLcbFtResponse response = ParametresLcbFtResponse.builder()
.organisationId(params.getOrganisation() != null ?
params.getOrganisation().getId().toString() : null)
.organisationNom(params.getOrganisation() != null ?
@@ -146,9 +145,14 @@ public class ParametresLcbFtService {
.montantSeuilValidationManuelle(params.getMontantSeuilValidationManuelle())
.codeDevise(params.getCodeDevise())
.estParametrePlateforme(params.getOrganisation() == null)
.dateCreation(params.getDateCreation())
.dateModification(params.getDateModification())
.actif(params.getActif())
.build();
// Set BaseResponse fields
response.setId(params.getId());
response.setDateCreation(params.getDateCreation());
response.setDateModification(params.getDateModification());
response.setActif(params.getActif());
return response;
}
}