This commit is contained in:
azw 2023-08-20 21:04:58 +08:00
parent 7dd2331f6c
commit 43aa47bceb
2 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,6 @@ func (this *dbPool) SelectOne(
func (this *dbPool) OrmSelectOne(
dataSource string,
tblName string,
fields []string,
whereKv [][]string,
cb QueryOneCb) {
params := []string{}
@ -342,6 +341,7 @@ func (this *dbPool) internalQueryOne(dataSource string, sql string, params []str
values = dataSet.GetValues()
}
}
GetSysLog().Info("xxxxxxxxxxxxxxxxxxx")
if this.style == GO_STYLE_DB {
cb(err, values)
} else {

View File

@ -30,10 +30,10 @@ type Pagination struct {
type HandlerFunc func(*Context)
type QueryResultCb func (error, *DataSet);
type QueryOneCb func (error, *[]*string);
type PageQueryCb func (error, *Pagination);
type ExecResultCb func (error, int64, int64);
type QueryResultCb func (error, *DataSet)
type QueryOneCb func (error, *[]*string)
type PageQueryCb func (error, *Pagination)
type ExecResultCb func (error, int64, int64)
type middleware struct {
middlewareType int32