From 3784696334e10a03df3ec964c781726964ea2f27 Mon Sep 17 00:00:00 2001 From: Rosy-zhudan Date: Wed, 11 Sep 2019 10:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/store_score.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/store_score.go b/business/model/dao/store_score.go index 87858865f..596a37bc0 100644 --- a/business/model/dao/store_score.go +++ b/business/model/dao/store_score.go @@ -16,7 +16,7 @@ func GetLatestWeeklyStoreScoreList(db *DaoDB, storeID, weekNum int) (storeScoreL sql := ` SELECT t2.name store_name, t1.* FROM store_score t1 JOIN store t2 ON t1.store_id = t2.id - WHERE store_id = ? + WHERE t1.store_id = ? AND DATE(t1.created_at) >= DATE_SUB( DATE_SUB( CURDATE(),