Skip to content

Commit 75b055d

Browse files
authored
Update README.md
1 parent f575f12 commit 75b055d

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

README.md

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -103,35 +103,12 @@ class YourController extends AbstractCrudController
103103

104104
public function yourAction()
105105
{
106-
$sql = "select
107-
ev.event_data_inicio as data_evento,
108-
en.end_cidade as cidade,
109-
en.end_estado as estado,
110-
COUNT(p.part_id) as participante,
111-
us.user_nome as treinadora,
112-
ca.cat_nome as modulo
113-
from EventosRest\Entity\Participante as p
114-
INNER JOIN Evento\Entity\Evento as ev
115-
WITH p.evento_event_id = ev.event_id
116-
INNER JOIN Evento\Entity\Endereco as en
117-
WITH ev.endereco_end_id = en.end_id
118-
INNER JOIN Evento\Entity\Categoria as ca
119-
WITH ev.categoria_cat_id = ca.cat_id
120-
INNER JOIN Evento\Entity\User as u
121-
WITH u.user_id = p.user_user_id
122-
INNER JOIN Evento\Entity\Palestrante as pa
123-
WITH pa.evento_event_id = p.evento_event_id
124-
INNER JOIN Evento\Entity\User as us
125-
WITH pa.user_user_id = us.user_id
126-
GROUP BY cidade";
106+
$sql = "Your query";
127107

128108
$filePath = $this->customExportService->export($sql, array(
129-
'data_evento',
130-
'cidade',
131-
'estado',
132-
'participante',
133-
'treinadora',
134-
'modulo'
109+
'your',
110+
'header',
111+
'fields'
135112
), 'xls');
136113

137114
return $this->redirect()->toUrl($filePath);

0 commit comments

Comments
 (0)