* [highgo] Cast type on join

This commit is contained in:
朱金勇
2025-10-16 10:25:05 +08:00
committed by Gitfox
parent 21ae5198af
commit 6a78009847
+2 -2
View File
@@ -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')