From 383de146fd1d62717d9ba20583ccfb55e8125f0a Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 9 Oct 2024 21:27:04 +0800 Subject: [PATCH] 1 --- 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 9b3fb57..fbd011c 100644 --- a/app/svc/svc_data_center.go +++ b/app/svc/svc_data_center.go @@ -465,7 +465,7 @@ func commAgentProfit(c *gin.Context, isTotal int, req md.DataCenterProfitRecordR groupBy = " group by %s,app_id order by date asc,id asc" } timeStr := "gf.date" - if req.Type == "0" { + if req.Type == "1" { timeStr = "DATE_FORMAT(date, '%Y-%m')" } if req.Type == "2" {