diff --git a/dbpool.go b/dbpool.go index e989032..ebe8dee 100644 --- a/dbpool.go +++ b/dbpool.go @@ -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 { diff --git a/types.go b/types.go index 43e4b59..fb8f480 100644 --- a/types.go +++ b/types.go @@ -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