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