File tree Expand file tree Collapse file tree 1 file changed +4
-27
lines changed
Expand file tree Collapse file tree 1 file changed +4
-27
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments