关于xorm,gorm update时的问题

ak5865859 · · 1315 次点击
DB.where('id = ?',id).Updates(&data) // 默认忽略0值。 save := make(map[string]interface) save['status'] = 0 DB.where('id = ?',id).Updates(&save) //
#1