This commit is contained in:
suyl
2021-07-21 14:20:49 +08:00
parent 4d4b83ce37
commit 5a46ee4264

View File

@@ -96,6 +96,8 @@ func Update(db *sqlx.DB, obj interface{}, fields ...string) (err error) {
} else {
sqlParams = append(sqlParams, direct.Field(0).Int())
}
fmt.Println(sql.String())
fmt.Println(sqlParams)
_, err = db.DB.Exec(sql.String(), sqlParams...)
return err
}