Skip to content

Commit

Permalink
Fazendo novas alterações do lombok...
Browse files Browse the repository at this point in the history
  • Loading branch information
WenderGalan committed Nov 24, 2019
1 parent f9d70eb commit 202205c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 26 deletions.
5 changes: 2 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public ResponseEntity relatorioVendaAluguel(Integer idUsuario, TipoNegocio tipoN


String arquivoGerado = RelatorioUtil.gerarRelatorio("listagemImoveis.jrxml", anuncios, usuario, tipoRelatorio, tipoTemplate,
new ReportParameter("titulo", titulo)
ReportParameter.builder().key("titulo").value(titulo).build()
);
return emailService.sendEmailWithAttachement(arquivoGerado, usuario.getEmail(), subject, text);
} else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.casafacilimoveis.util;

import lombok.Builder;
import lombok.Data;

/**
* casa-facil-imoveis
* Wender Galan
Expand All @@ -11,29 +14,9 @@
* Observação :
* *********************************************
*/
@Data
@Builder
public class ReportParameter {

private String key;
private Object value;

public ReportParameter(String key, Object value) {
this.key = key;
this.value = value;
}

public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public Object getValue() {
return value;
}

public void setValue(Object value) {
this.value = value;
}
}

0 comments on commit 202205c

Please sign in to comment.