优化日程管理功能

This commit is contained in:
2026-09-09 17:16:52 +08:00
parent 2f238875e1
commit c146dc2f2f
4 changed files with 126 additions and 72 deletions
+2
View File
@@ -275,6 +275,7 @@ func (c *BackendOaScheduleController) Stats() {
todayTotal, _ := base().Filter("schedule_date", today).Count()
todayDone, _ := base().Filter("schedule_date", today).Filter("status", 1).Count()
weekTotal, _ := base().Filter("schedule_date__gte", weekStart).Filter("schedule_date__lte", weekEnd).Count()
weekDone, _ := base().Filter("schedule_date__gte", weekStart).Filter("schedule_date__lte", weekEnd).Filter("status", 1).Count()
monthTotal, _ := base().Filter("schedule_date__gte", monthStart).Count()
monthDone, _ := base().Filter("schedule_date__gte", monthStart).Filter("status", 1).Count()
overdue, _ := base().Filter("schedule_date__lt", today).Filter("status", 0).Count()
@@ -283,6 +284,7 @@ func (c *BackendOaScheduleController) Stats() {
"today_total": todayTotal,
"today_done": todayDone,
"week_total": weekTotal,
"week_done": weekDone,
"month_total": monthTotal,
"month_done": monthDone,
"overdue": overdue,