* [perf story #64139] Add appendFlowFieldsForBelong method.

This commit is contained in:
wangyidong
2024-09-05 10:05:50 +08:00
committed by 王怡栋
parent 4f69f4a6a2
commit bebb58da84
+16
View File
@@ -9869,4 +9869,20 @@ class upgradeModel extends model
}
return true;
}
public function appendFlowFieldsForBelong()
{
$flows = $this->dao->select('*')->from(TABLE_WORKFLOW)->where('buildin')->eq('0')->fetchAll('id');
if(empty($flows)) return true;
$flowTables = $this->dao->query("SHOW tables LIKE 'zt_flow_%'")->fetchAll(PDO::FETCH_COLUMN);
$flowTableDesc = array();
foreach($flowTables as $flowTable)
{
$desc = $this->dao->query("DESC $flowTable")->fetchAll(PDO::FETCH_ASSOC);
$flowTableDesc[$flowTable] = array_column($desc, NULL, 'Field');
}
return true;
}
}