From f4c1e4f9bce6d4eff8d6ae2a7bc22e92757e18c3 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 30 Sep 2024 16:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/svc_data_center.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/svc/svc_data_center.go b/app/svc/svc_data_center.go index 3a8b4e4..e511af2 100644 --- a/app/svc/svc_data_center.go +++ b/app/svc/svc_data_center.go @@ -476,7 +476,7 @@ func commAgentProfit(c *gin.Context, isTotal int, req md.DataCenterProfitRecordR nativeString, _ := db.QueryNativeString(db.Db, sql1) var total int64 = 0 if isTotal == 1 { - sqlTotal := fmt.Sprintf(sql, field, where, "") + sqlTotal := fmt.Sprintf(sql, "1", where, "") sqlTotal1 := `select COUNT(*) as count from (%s) as tmp` sqlTotal1 = fmt.Sprintf(sqlTotal1, sqlTotal) nativeStringTotal, _ := db.QueryNativeString(db.Db, sqlTotal1)