当前位置: 首页>>代码示例>>Golang>>正文


Golang Schedule.ScheduleAlResult方法代码示例

本文整理汇总了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)

}
开发者ID:ryancsq,项目名称:test,代码行数:8,代码来源:schedule.go

示例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)

}
开发者ID:ryancsq,项目名称:test,代码行数:17,代码来源:500kan.go


注:本文中的500kan/util/myinit.Schedule.ScheduleAlResult方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。