...
|
...
|
@@ -55,11 +55,11 @@ func (crontabService *CrontabService) initTask() { |
|
|
autoTodayWorkshopPlanCompletionRecord := task.NewTask("定时刷新当天车间计划完成纪录", "0 0 1-23/1 * * *", AutoTodayWorkshopPlanCompletionRecord) // 1:00, 4:00, 每三个小时运行一次
|
|
|
task.AddTask("autoTodayWorkshopPlanCompletionRecord", autoTodayWorkshopPlanCompletionRecord)
|
|
|
|
|
|
syncProductPlan := task.NewTask("定时同步车间计划", "0 */5 * * * *", SyncProductPlan)
|
|
|
task.AddTask("SyncProductPlan", syncProductPlan)
|
|
|
|
|
|
syncProduct := task.NewTask("定时同步产品信息", "0 */30 * * * *", SyncProduct)
|
|
|
syncProduct := task.NewTask("定时同步产品信息", "0 0 * * * *", SyncProduct)
|
|
|
task.AddTask("syncProduct", syncProduct)
|
|
|
|
|
|
syncProductPlan := task.NewTask("定时同步车间计划", "0 5 * * * *", SyncProductPlan)
|
|
|
task.AddTask("SyncProductPlan", syncProductPlan)
|
|
|
}
|
|
|
|
|
|
func (crontabService *CrontabService) StartCrontabTask() {
|
...
|
...
|
|