@@ -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;
}