lgy 2 settimane fa
parent
commit
416d491be0
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      jcjyhr/app/admin/servies/bi/BaseDataBiServies.php

+ 4 - 4
jcjyhr/app/admin/servies/bi/BaseDataBiServies.php

@@ -243,10 +243,10 @@ abstract class BaseDataBiServies
         ->field('count('.$this->countField.') AS count, date_format('.$this->timeFieldName.', "%Y%m%d") AS day')
         ->where($where)
         ->whereMonth($this->timeFieldName)
-        ->group('day')
-        ->order('day', 'asc')
-        ->buildSql();
-        var_dump($days);
+        ->group('date_format('.$this->timeFieldName.', "%Y%m%d") ')
+        ->order('date_format('.$this->timeFieldName.', "%Y%m%d") ', 'asc')
+        ->select()
+        ->toArray();
         return $days;
     }