Example #1
0
func UpdateAsiaPanBackupResult(schedule_bet_date string, pan_float_info map[string]float32, pan_string_info map[string]string) (update_affected int64, update_err error) {
	AsiaPanBackup := new(myinit.AsiaPanBackup)
	AsiaPanBackup.ScheduleScore = pan_string_info["schedule_score"]
	AsiaPanBackup.ScheduleSpfResult = pan_string_info["schedule_spf_result"]
	AsiaPanBackup.ScheduleRqspfResult = pan_string_info["schedule_rqspf_result"]
	AsiaPanBackup.ScheduleZjqResult = pan_string_info["schedule_zjq_result"]
	AsiaPanBackup.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(AsiaPanBackup)
		//	fmt.Println(update_affected)
		//	fmt.Println(update_err)
	return update_affected, update_err
}