func UpdateAsiaPanResult(schedule_bet_date string, pan_float_info map[string]float32, pan_string_info map[string]string) (update_affected int64, update_err error) { AsiaPanLog := new(myinit.AsiaPanLog) AsiaPanLog.ScheduleScore = pan_string_info["schedule_score"] AsiaPanLog.ScheduleSpfResult = pan_string_info["schedule_spf_result"] AsiaPanLog.ScheduleRqspfResult = pan_string_info["schedule_rqspf_result"] AsiaPanLog.ScheduleZjqResult = pan_string_info["schedule_zjq_result"] AsiaPanLog.ScheduleBqcResult = pan_string_info["schedule_bqc_result"] update_affected, update_err = myinit.Engine. Cols("schedule_score", "schedule_spf_result", "schedule_rqspf_result", "schedule_zjq_result", "schedule_bqc_result"). Where("schedule_result_no=? AND schedule_date=? ", pan_string_info["schedule_result_no"], schedule_bet_date).Update(AsiaPanLog) fmt.Println(update_affected) fmt.Println(update_err) return update_affected, update_err }