* [task#129207,doing,0.4h] adjust object linked commits sql.

This commit is contained in:
caoyanyi
2024-09-24 10:36:13 +08:00
committed by 田淑杰
parent bee3fe16fb
commit 0fe36bcad5
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -3335,8 +3335,8 @@ class taskModel extends model
{
return $this->dao->select('t1.revision,t3.id AS id,t3.name AS name')
->from(TABLE_REPOHISTORY)->alias('t1')
->leftJoin(TABLE_RELATION)->alias('t2')->on('t2.relation="completedin" AND t2.BType="commit" AND t2.BID=t1.id')
->leftJoin(TABLE_TASK)->alias('t3')->on('t2.AType="task" AND t2.AID=t3.id')
->leftJoin(TABLE_RELATION)->alias('t2')->on("t2.relation='completedin' AND t2.BType='commit' AND t2.BID=t1.id")
->leftJoin(TABLE_TASK)->alias('t3')->on("t2.AType='task' AND t2.AID=t3.id")
->where('t1.revision')->in($revisions)
->andWhere('t1.repo')->eq($repoID)
->andWhere('t3.id')->ne('')