Commit 66d75aae2e814e9b8e6e3723d8c5ce47b63481c9

Authored by bonot
1 parent c7021af8
Exists in 2.8 and in 6 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Ajusta group by

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 (
... ...