Merge pull request #28 from tlerbao/patch-1

修复带有表前缀时找不到字段的问题
This commit is contained in:
JaguarJack 2021-03-02 08:07:43 +08:00 committed by GitHub
commit 3196292c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ class CrontabLog extends CatchModel
return $this->catchLeftJoin(Crontab::class, 'id', 'crontab_id', ['name', 'group', 'task']) return $this->catchLeftJoin(Crontab::class, 'id', 'crontab_id', ['name', 'group', 'task'])
->catchSearch() ->catchSearch()
->catchOrder() ->catchOrder()
->field(['used_time', 'error_message', 'crontab_log.status', 'crontab_log.id', 'crontab_log.created_at']) ->field(['used_time', 'error_message', $this->aliasField('status'), $this->aliasField('id'), $this->aliasField('created_at')])
->paginate(); ->paginate();
} }
} }