Beispiel #1
0
func Add(pan_int_info map[string]int, pan_float_info map[string]float32, pan_string_info map[string]string) {
	myinit.Myinit()
	AsiaPan := new(myinit.AsiaPan)
	AsiaPan.ScheduleFenxiId = pan_int_info["schedule_fenxi_id"]
	//	AsiaPan.ScheduleBetDate = pan_string_info["schedule_bet_date"]

	AsiaPan.ScheduleDate = pan_string_info["schedule_date"]
	AsiaPan.ScheduleNo = pan_string_info["schedule_no"]
	AsiaPan.ScheduleResultNo = pan_string_info["schedule_result_no"]
	AsiaPan.ScheduleLeague = pan_string_info["schedule_league"]
	AsiaPan.ScheduleHome = pan_string_info["schedule_home"]
	AsiaPan.ScheduleGuest = pan_string_info["schedule_guest"]
	AsiaPan.ScheduleGameDesc = pan_string_info["schedule_game_desc"]
	AsiaPan.ScheduleDateDesc = pan_string_info["schedule_date_desc"]
	AsiaPan.CompanyId = pan_string_info["company_id"]
	AsiaPan.CompanyName = pan_string_info["company_name"]
	AsiaPan.IsBigCompany = pan_int_info["is_big_company"]
	AsiaPan.OpenPan = pan_float_info["open_pan"]
	AsiaPan.OpenPanDesc = pan_string_info["open_pan_desc"]
	AsiaPan.OpenHomeWater = pan_float_info["open_home_water"]
	AsiaPan.OpenGuestWater = pan_float_info["open_guest_water"]
	AsiaPan.OpenPanTime = pan_string_info["open_pan_time"]
	AsiaPan.RealPan = pan_float_info["real_pan"]
	AsiaPan.RealPanDesc = pan_string_info["real_pan_desc"]
	AsiaPan.RealHomeWater = pan_float_info["real_home_water"]
	AsiaPan.RealGuestWater = pan_float_info["real_guest_water"]
	AsiaPan.PanChangeTime = pan_string_info["pan_change_time"]
	AsiaPan.HomePanChangeType = pan_int_info["home_pan_change_type"]
	AsiaPan.HomePanChangeTypeDesc = pan_string_info["home_pan_change_type_desc"]
	AsiaPan.HomeWaterChangeType = pan_int_info["home_water_change_type"]
	AsiaPan.HomeWaterChangeTypeDesc = pan_string_info["home_water_change_type_desc"]
	AsiaPan.Predict1Result = pan_string_info["predict1_result"]
	AsiaPan.Predict1Comment = pan_string_info["predict1_cmt"]
	AsiaPan.Predict2Result = pan_string_info["predict2_result"]
	AsiaPan.Predict2Comment = pan_string_info["predict2_cmt"]

	ins_affected, ins_err := myinit.Engine.Insert(AsiaPan)
	fmt.Println(ins_affected)
	fmt.Println(ins_err)
}