refactor: 精简base.repo与base.app等

This commit is contained in:
meilin.huang
2024-04-28 23:45:57 +08:00
parent 653953ee76
commit f2c7ef78c0
91 changed files with 758 additions and 957 deletions

View File

@@ -193,7 +193,7 @@ func (m *machineCronJobAppImpl) RunCronJob(key string) {
cronJob := new(entity.MachineCronJob)
cronJob.Key = key
err := m.GetBy(cronJob)
err := m.GetByCond(cronJob)
// 不存在或禁用,则移除该任务
if err != nil || cronJob.Status == entity.MachineCronJobStatusDisable {
scheduler.RemoveByKey(key)