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