3 Star 2 Fork 1

fotomxq/weeekj_core

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
analysis.go 421 Bytes
Copy Edit Raw Blame History
fotomxq authored 2024-12-01 15:52 +08:00 . 优化SQL统计方法;
package BaseSQLTools
import (
"fmt"
)
// QuickAnalysis 获取统计
type QuickAnalysis struct {
//Quick
quickClient *Quick
}
// GetCountByField 获取指定条件的数据量
func (c *QuickAnalysis) GetCountByField(field string, val any) (count int64) {
//检查ID
if field == "" {
return
}
//获取数据
count = c.quickClient.client.Analysis().Count(fmt.Sprintf("%s = $1", field), val)
//反馈
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fotomxq/weeekj_core.git
git@gitee.com:fotomxq/weeekj_core.git
fotomxq
weeekj_core
weeekj_core
v5.4.29

Search