// Update func UpdateReport(id, userId int, startDay string, report models.Report) { report.Id = id report.UserId = userId report.StartDay = startDay report.Status = constant.STATUS_ARI DB.Debug().Where("Status = ?", constant.STATUS_ARI).Save(&report) }