优化日程管理功能
This commit is contained in:
1 parent
2f238875e1
commit
c146dc2f2f
4 files changed
+126
-72
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user