* Fix product fetchPairs.

This commit is contained in:
tanghucheng
2023-11-08 01:20:36 -05:00
parent 2d3bab7aa9
commit d30faee4f3
+1
View File
@@ -50,6 +50,7 @@ class productTao extends productModel
$append = $this->formatAppendParam($append);
return $this->dao->select("t1.*, IF(INSTR(' closed', t1.status) < 2, 0, 1) AS isClosed")->from(TABLE_PRODUCT)->alias('t1')
->leftJoin(TABLE_PROGRAM)->alias('t2')->on('t1.program = t2.id')
->where('t1.name')->ne('')
->beginIF($this->config->vision != 'or')->andWhere("FIND_IN_SET('{$this->config->vision}', t1.vision)")->fi()
->beginIF($shadow !== 'all')->andWhere('t1.shadow')->eq((int)$shadow)->fi()
->andWhere('((1=1')