Pārlūkot izejas kodu

首页概览昨日今日签到人数统计

master
huangjiajun pirms 2 dienas
vecāks
revīzija
95318f9f5e
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      app/hdl/hdl_home_page.go

+ 2
- 2
app/hdl/hdl_home_page.go Parādīt failu

@@ -132,12 +132,12 @@ func GetActiveData(c *gin.Context) {
}

activityDb := implement.NewEggEnergyUserActivityDb(db.Db)
todayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(todayStartAt, todayEndAt)
todayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(nowStr, nowStr)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return
}
yesterdayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(yesterdayStartAt, yesterdayEndAt)
yesterdayActivityCount, err := activityDb.EggEnergyUserActivityCountByDate(yesterdayStr, yesterdayStr)
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return


Notiek ielāde…
Atcelt
Saglabāt