Browse Source

添加定时任务

pull/141/head
zhangxin 3 years ago
parent
commit
8368b37fb9
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      scheduler/ParseDemand.go

+ 8
- 0
scheduler/ParseDemand.go View File

@ -4,7 +4,15 @@ import (
services "LAPP_GAAS_GFrame_BACKEND/services/om"
)
var status int
func ParseDemandFile() {
if status == 0 {
status = 1
} else {
return
}
omService := services.NewDemandHeadService()
omService.OMParseDemand()
status = 0
}

Loading…
Cancel
Save