* [#feedback7537,done,2h,0h] Fix query sql error for max5.6 php74 f7537.

This commit is contained in:
wangyuting
2024-11-04 14:36:46 +08:00
committed by 胡方舟
parent 83119e27d9
commit 44e5d50112
+1 -1
View File
@@ -3569,7 +3569,7 @@ class executionModel extends model
$onSQL = '';
foreach($matches[1] as $matchIndex => $match) $onSQL .= "t2.account {$match} or ";
$onSQL = trim($onSQL, ' or ');
$sql = $sql->leftJoin(TABLE_TASKTEAM)->alias('t2')->on("t2.task = t1.id and ({$onSQL})");
if($onSQL) $sql = $sql->leftJoin(TABLE_TASKTEAM)->alias('t2')->on("t2.task = t1.id and ({$onSQL})");
}
$orderBy = array_map(function($value){return 't1.' . $value;}, explode(',', $orderBy));