gorm鏈夌幇鎴愮殑鍑芥暟鏂规硶 鍙互鏂逛究鐨勬煡鐪媜rm瀵瑰簲鐨剆ql璇彞涔堬紵
db.Model(&MainTask{}).Where("task_id in ?", task_ids).Update(MainTask{TaskStatus: task_status, UpdatedAt: time.Now()})
Try the Debug
.
// Debug a single operation, show detailed log for this operation
db.Debug().Where("name = ?", "jinzhu").First(&User{})
@dinglixiang yes, thank U.
db.LogMode(true)
Most helpful comment
db.LogMode(true)