fixbug_sunjun_22696

This commit is contained in:
sunjun
2022-05-20 02:34:18 +00:00
parent a34835e5a0
commit f4ff3f0491
+3 -10
View File
@@ -344,16 +344,9 @@ class myModel extends model
if($objectType == 'task')
{
$executionList = array();
foreach($objectList as $task)
{
$executionList[$task->execution] = $task->execution;
}
$objectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)->Where('id')->in($executionList)->fetchPairs('id');
foreach($objectList as $task)
{
$task->executionName = zget($objectPairs, $task->execution, '');
}
foreach($objectList as $task) $executionList[$task->execution] = $task->execution;
$objectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)->where('id')->in($executionList)->fetchPairs('id');
foreach($objectList as $task) $task->executionName = zget($objectPairs, $task->execution, '');
if($objectList) return $this->loadModel('task')->processTasks($objectList);
return $objectList;