* Fix sql error.

This commit is contained in:
songchenxuan
2023-09-05 16:25:43 +08:00
parent 9c6d800b32
commit c22fd67b32
2 changed files with 2 additions and 2 deletions
@@ -36,7 +36,7 @@ class day_of_daily_effort extends baseCalc
->from(TABLE_EFFORT)
->where('deleted')->eq('0')
->andWhere('year(date)')->ne('0000')
->groupBy('`year`, `month`, `day`')
->groupBy('`year`, `month`, `day`, date')
->query();
}
@@ -30,7 +30,7 @@ class hour_of_daily_effort extends baseCalc
->from(TABLE_EFFORT)
->where('deleted')->eq('0')
->andWhere('year(date)')->ne('0000')
->groupBy('`year`, `month`, `day`')
->groupBy('`year`, `month`, `day`, date')
->query();
}