* [task#125055,done,0.1h,0h] Add sapces to sql.

This commit is contained in:
zhaixiaojian
2024-08-13 19:15:05 +08:00
committed by 丁国栋
parent a67fbbfaff
commit 49d5d68aaf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1895,7 +1895,7 @@ class repoModel extends model
->where('revision')->in([$log->revision])
->andWhere('repo')->eq($repo->id)
->fetchPairs('id');
foreach (array('stories'=>'story', 'tasks'=>'task', 'bugs'=>'bug') as $objectType=>$modelType)
foreach (array('stories' => 'story', 'tasks' => 'task', 'bugs' => 'bug') as $objectType=>$modelType)
{
if(!empty($objects[$objectType]))
{
+2 -2
View File
@@ -5415,8 +5415,8 @@ class storyModel extends model
{
return $this->dao->select('t1.revision,t3.id AS id,t3.title AS title')
->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_STORY)->alias('t3')->on('t2.AType="story" 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_STORY)->alias('t3')->on('t2.AType="story" AND t2.AID=t3.id')
->where('t1.revision')->in($revisions)
->andWhere('t1.repo')->eq($repoID)
->andWhere('t3.id')->ne('')