+ UpdateActStatusByTime

This commit is contained in:
gazebo
2019-07-25 10:06:04 +08:00
parent 05b2c07861
commit 60607674b7
2 changed files with 21 additions and 0 deletions

View File

@@ -41,6 +41,9 @@ var (
openRemoteStoreTimeList = []string{
"23:30:00",
}
updateActStatusTimeList = []string{
"00:01:00",
}
)
func Init() {
@@ -63,6 +66,10 @@ func Init() {
ScheduleTimerFunc(func() {
act.RefreshPageActs(jxcontext.AdminCtx, []int{model.VendorIDEBAI}, time.Now().Add(-30*24*time.Hour), false)
}, refreshPageActTimeList)
ScheduleTimerFunc(func() {
dao.UpdateActStatusByTime(dao.GetDB(), time.Now())
}, updateActStatusTimeList)
}
}