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)