本文整理汇总了Golang中500kan/util/myinit.Schedule.ScheduleAlResult方法的典型用法代码示例。如果您正苦于以下问题:Golang Schedule.ScheduleAlResult方法的具体用法?Golang Schedule.ScheduleAlResult怎么用?Golang Schedule.ScheduleAlResult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类500kan/util/myinit.Schedule
的用法示例。
在下文中一共展示了Schedule.ScheduleAlResult方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: UpdateScheduleCalcResult
func UpdateScheduleCalcResult(predict_json []byte, schedule_int_info map[string]int, schedule_string_info map[string]string) {
exist_schedule := new(myinit.Schedule)
exist_schedule.ScheduleAlResult = string(predict_json)
myinit.Engine.Cols("schedule_al_result").
Where("schedule_fenxi_id=? AND schedule_date = ? and schedule_no=? ", schedule_int_info["schedule_fenxi_id"], schedule_string_info["schedule_date"], schedule_string_info["schedule_no"]).Update(exist_schedule)
}
示例2: calcScheduleResult
func calcScheduleResult(fid int, date string, schedule_no string) {
predict1_map := getPredictResMap(1, date, schedule_no)
predict2_map := getPredictResMap(2, date, schedule_no)
predict_map := make(map[string]interface{})
predict_map["predict1"] = predict1_map
predict_map["predict2"] = predict2_map
predict_json, _ := json.Marshal(predict_map)
exist_schedule := new(myinit.Schedule)
exist_schedule.ScheduleAlResult = string(predict_json)
myinit.Engine.Cols("schedule_al_result").
Where("schedule_fenxi_id=? AND schedule_date = ? and schedule_no=? ", fid, date, schedule_no).Update(exist_schedule)
}