Commit 66d75aae2e814e9b8e6e3723d8c5ce47b63481c9
1 parent
c7021af8
Exists in
2.8
and in
6 other branches
Ajusta group by
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ieducar/modules/Api/Views/ServidorController.php
... | ... | @@ -162,7 +162,7 @@ class ServidorController extends ApiCoreController |
162 | 162 | and pt.ano = $2 |
163 | 163 | and t.ref_ref_cod_escola in ({$escola}) |
164 | 164 | {$where} |
165 | - group by id, ccae.tipo_nota, date(ccae.updated_at) | |
165 | + group by id, ccae.tipo_nota, greatest(pt.updated_at, date(ccae.updated_at)) | |
166 | 166 | ) |
167 | 167 | union all |
168 | 168 | ( | ... | ... |