* [bug#57105] adjust job log order.

This commit is contained in:
caoyanyi
2024-11-15 13:31:41 +08:00
committed by 李阳
parent e17637744a
commit 11a8810dab
+1
View File
@@ -61,6 +61,7 @@ class compileModel extends model
$this->session->set('compileOnlyCondition', true, $this->app->tab);
}
if(strpos($orderBy, 'id') === false) $orderBy .= ', id_desc';
return $this->dao->select('t1.id, t1.name, t1.job, t1.status, t1.createdDate, t1.testtask, t2.pipeline, t2.triggerType, t2.svnDir, t2.comment, t2.atDay, t2.atTime, t2.engine, t2.triggerActions, t3.name as repoName, t4.name as jenkinsName')->from(TABLE_COMPILE)->alias('t1')
->leftJoin(TABLE_JOB)->alias('t2')->on('t1.job=t2.id')
->leftJoin(TABLE_REPO)->alias('t3')->on('t2.repo=t3.id')