This commit is contained in:
suyl
2021-07-23 15:16:55 +08:00
parent 3933b86459
commit 514eb69497
2 changed files with 3 additions and 4 deletions

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
}