* [refac,0.1h,0h] optimize code.

This commit is contained in:
liumengyi
2024-06-12 15:16:30 +08:00
parent f0090665b4
commit 84661fc970
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ class testtaskModel extends model
*/
public function getProjectTasks(int $projectID, string $orderBy = 'id_desc', object $pager = null): array
{
$tasks = $this->dao->select('t1.*, t1.id as idAB, t5.multiple, IF(t4.shadow = 1, t5.name, t4.name) AS productName, t3.name AS executionName, t2.name AS buildName, t2.branch AS branch, t5.name AS projectName, t4.order as productOrder')
$tasks = $this->dao->select('t1.*, t1.id as idName, t5.multiple, IF(t4.shadow = 1, t5.name, t4.name) AS productName, t3.name AS executionName, t2.name AS buildName, t2.branch AS branch, t5.name AS projectName, t4.order as productOrder')
->from(TABLE_TESTTASK)->alias('t1')
->leftJoin(TABLE_BUILD)->alias('t2')->on('t1.build = t2.id')
->leftJoin(TABLE_EXECUTION)->alias('t3')->on('t1.execution = t3.id')