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" {