Merge branch 'ztflow-daitingting-main#daitingting' of zentao/zentaopms (#33)

This commit is contained in:
綦新志
2024-06-11 00:26:06 +00:00
committed by Gitfox
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -65,9 +65,10 @@ class executionTaskList extends wg
foreach($executions as $executionID => $execution)
{
if(isset($items[$executionID]) || !$execution->multiple) continue;
if(isset($items[$executionID])) continue;
$executionLink = (isset($execution->type) && $execution->type == 'kanban' && $isInModal) ? null : createLink('execution', 'view', "executionID=$executionID");
if(!$execution->multiple) $executionLink = createLink('project', 'view', "projectID=$execution->project");
$items[$executionID] = array
(
'icon' => 'run',
+2 -2
View File
@@ -48,12 +48,12 @@ class storyModel extends model
$story->relationStoryID = $this->getRelationStoryID($story->id, $story->type);
$storyIdList = $storyID . ($story->relationStoryID ? "," . trim($story->relationStoryID, ',') : '') . ($story->twins ? "," . trim($story->twins, ',') : '');
$story->executions = $this->dao->select('t1.project, t2.id, t2.name, t2.status, t2.type, t2.multiple')->from(TABLE_PROJECTSTORY)->alias('t1')
$story->executions = $this->dao->select('t2.project, t2.id, t2.name, t2.status, t2.type, t2.multiple')->from(TABLE_PROJECTSTORY)->alias('t1')
->leftJoin(TABLE_EXECUTION)->alias('t2')->on('t1.project = t2.id')
->where('t2.type')->in('sprint,stage,kanban')
->andWhere('t1.story')->in($storyIdList)
->orderBy('t1.`order` DESC')
->fetchAll('project');
->fetchAll('id');
$story->tasks = $this->dao->select('id,name,assignedTo,execution,project,status,consumed,`left`,type')->from(TABLE_TASK)->where('deleted')->eq(0)->andWhere('story')->in($storyIdList)->orderBy('id DESC')->fetchGroup('execution');