mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
improve gconv.Struct for map attribute converting
This commit is contained in:
@ -548,6 +548,7 @@ func formatWhere(db DB, in formatWhereInput) (newWhere string, newArgs []interfa
|
||||
break
|
||||
}
|
||||
// Automatically mapping and filtering the struct attribute.
|
||||
// TODO struct fields in sequence
|
||||
data := DataToMapDeep(in.Where)
|
||||
if in.Table != "" {
|
||||
data, _ = db.GetCore().mappingAndFilterData(in.Schema, in.Table, data, true)
|
||||
|
||||
Reference in New Issue
Block a user