mirror of
https://github.com/tangpanqing/aorm.git
synced 2025-10-11 02:40:04 +08:00
update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package builder
|
||||
|
||||
import (
|
||||
"github.com/tangpanqing/aorm/helper"
|
||||
"github.com/tangpanqing/aorm/utils"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@ func (b *Builder) Having(dest interface{}) *Builder {
|
||||
for i := 0; i < typeOf.Elem().NumField(); i++ {
|
||||
isNotNull := valueOf.Elem().Field(i).Field(0).Field(1).Bool()
|
||||
if isNotNull {
|
||||
key := helper.UnderLine(typeOf.Elem().Field(i).Name)
|
||||
key := utils.UnderLine(typeOf.Elem().Field(i).Name)
|
||||
val := valueOf.Elem().Field(i).Field(0).Field(0).Interface()
|
||||
b.havingList = append(b.havingList, WhereItem{Field: key, Opt: Eq, Val: val})
|
||||
}
|
||||
|
Reference in New Issue
Block a user