From 51f49d5ee08feb87dfd66f82d70bc30e989f97bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 21 Oct 2024 11:21:41 +0800 Subject: [PATCH] 1 --- business/model/dao/store.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/business/model/dao/store.go b/business/model/dao/store.go index 7899bf282..2d2e65599 100644 --- a/business/model/dao/store.go +++ b/business/model/dao/store.go @@ -3,7 +3,6 @@ package dao import ( "errors" "fmt" - "git.rosy.net.cn/jx-callback/globals" "sort" "strings" "time" @@ -1680,7 +1679,7 @@ func StatisticsIncome(db *DaoDB, startTime, endTime time.Time, storeId int, bran } if len(brandId) != model.NO { - sql += ` AND t3.brand_id IN (` + GenQuestionMarks(len(storeList)) + `)` + sql += ` AND t3.brand_id IN (` + GenQuestionMarks(len(brandId)) + `)` parma = append(parma, brandId) } if len(vendorId) != model.NO { @@ -1690,9 +1689,6 @@ func StatisticsIncome(db *DaoDB, startTime, endTime time.Time, storeId int, bran sql += ` GROUP BY t1.jx_store_id` - globals.SugarLogger.Debugf("---------sql := %s", sql) - globals.SugarLogger.Debugf("---------parm := %s", utils.Format4Output(parma, false)) - incomeInfo := make([]*StatisticsIncomeInfo, 0, 0) if err := GetRows(db, &incomeInfo, sql, parma...); err != nil { return nil, err