From 12194ac987ee4d29b1dfa222bac9132fe2026b51 Mon Sep 17 00:00:00 2001 From: Rosy-zhudan Date: Mon, 16 Sep 2019 17:46:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/misc/store_score.go | 2 +- business/model/dao/store_score.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/misc/store_score.go b/business/jxstore/misc/store_score.go index d984d31e0..390674fa2 100644 --- a/business/jxstore/misc/store_score.go +++ b/business/jxstore/misc/store_score.go @@ -662,7 +662,7 @@ func CheckScoreStore() { checkTime2 := utils.Str2Time(checkTimeStr2) if curTime.Unix() >= checkTime1.Unix() && curTime.Unix() <= checkTime2.Unix() { db := dao.GetDB() - hasStoreScoreData, err := dao.CheckHasStoreScoreData(db, time.Now()) + hasStoreScoreData, err := dao.CheckHasStoreScoreData(db, curTime) if err == nil && !hasStoreScoreData { ScoreStore(jxcontext.AdminCtx, nil) } diff --git a/business/model/dao/store_score.go b/business/model/dao/store_score.go index e144a1cbb..604a3b52c 100644 --- a/business/model/dao/store_score.go +++ b/business/model/dao/store_score.go @@ -55,7 +55,7 @@ func CheckHasStoreScoreData(db *DaoDB, dateTime time.Time) (hasStoreScoreData bo sql := ` SELECT COUNT(*) count FROM store_score - WHERE DATE(createtime) = DATE(?) + WHERE DATE(score_date) = DATE(?) ` sqlParams := []interface{}{ dateTime,