improve gconv.Struct for map attribute converting

This commit is contained in:
John Guo
2021-08-19 11:28:25 +08:00
parent 457d552fa0
commit f03f56ba4e
9 changed files with 77 additions and 37 deletions

View File

@ -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)