|
|
@@ -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) |
|
|
|