瀏覽代碼

更新

master
huangjiajun 1 月之前
父節點
當前提交
f4c1e4f9bc
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      app/svc/svc_data_center.go

+ 1
- 1
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)


Loading…
取消
儲存