Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
f4c1e4f9bc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/svc/svc_data_center.go

+ 1
- 1
app/svc/svc_data_center.go View File

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


Loading…
Cancel
Save