From 6a7800984754e03e724ac37f9aae1e01d09df9de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Thu, 16 Oct 2025 10:25:05 +0800 Subject: [PATCH] * [highgo] Cast type on join --- module/custom/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/custom/model.php b/module/custom/model.php index 0caa21b4bd..2ac3c4b2b2 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -1138,7 +1138,7 @@ class customModel extends model if(in_array($this->config->edition, array('max', 'ipd'))) { return (int)$this->dao->select('t1.*')->from(TABLE_ISSUE)->alias('t1') - ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id') + ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = CAST(t2.id AS CHAR)') ->where('t1.deleted')->eq('0') ->andWhere('t2.deleted')->eq('0') ->andWhere('t2.model')->eq('scrum') @@ -1160,7 +1160,7 @@ class customModel extends model if(in_array($this->config->edition, array('max', 'ipd'))) { return (int)$this->dao->select('t1.*')->from(TABLE_RISK)->alias('t1') - ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id') + ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = CAST(t2.id AS CHAR)') ->where('t1.deleted')->eq('0') ->andWhere('t2.deleted')->eq('0') ->andWhere('t2.model')->eq('scrum')