main.go 728B

12345678910111213141516171819202122232425262728293031323334353637
  1. package main
  2. import (
  3. _ "XT_New/routers"
  4. "XT_New/service"
  5. "github.com/astaxie/beego"
  6. )
  7. func init() {
  8. service.ConnectDB()
  9. }
  10. func main() {
  11. //service.NewAutoCreateWeekSchedules()
  12. //service.BeginAutoCreateWeekDisinfectionJob()
  13. //service.BeginAutoCreatePlanJob()
  14. // //service.AutoClearSchedules()
  15. //service.BeginAutoCreateStaffScheduleJob()
  16. //service.BeginAutoCreateDrugJob()
  17. //service.BeginAutoCreateStockJob()
  18. //beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 6000
  19. //beego.BConfig.WebConfig.AutoRender = false
  20. //
  21. //fmt.Println(0 % 4)
  22. //fmt.Println(1 % 4)
  23. //fmt.Println(2 % 4)
  24. //fmt.Println(3 % 4)
  25. //fmt.Println(4 % 4)
  26. //fmt.Println(5 % 4)
  27. //fmt.Println(6 % 4)
  28. //fmt.Println(7 % 4)
  29. beego.Run()
  30. }