From 11653a891465b7a0367d4106a695584859ea28ad Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 13 Feb 2023 09:45:43 +0800 Subject: [PATCH] * fix bug. --- module/build/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/build/model.php b/module/build/model.php index 70abda63d6..4dc9bd705f 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -65,7 +65,7 @@ class buildModel extends model { return $this->dao->select('t1.*, t2.name as executionName, t2.id as executionID, t2.deleted as executionDeleted, t3.name as productName') ->from(TABLE_BUILD)->alias('t1') - ->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.execution = t2.id') + ->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.execution = 0 or t1.execution = t2.id') ->leftJoin(TABLE_PRODUCT)->alias('t3')->on('t1.product = t3.id') ->where('t1.deleted')->eq(0) ->andWhere('t1.project')->ne(0)